随笔分类 - java
摘要:package student; public class student { private String num; private String name; public student(String num,String name){ this.num = num; this.name = n
阅读全文
摘要:接口 shape package shape; public abstract interface shape { public abstract void Draw(); public abstract void getString(); public static void main(Strin
阅读全文
摘要:package student; public class students { private int studentId; private String studentName; private double averageScore; private static int nextId = 1
阅读全文
摘要:通过用static来定义方法或成员,为我们编程提供了某种便利,从某种程度上可以说它类似于C语言中的全局函数和全局变量。但是,并不是说有了这种便利,你便可以随处使用,如果那样的话,你便需要认真考虑一下自己是否在用面向对象的思想编程,自己的程序是否是面向对象的。 好了,现在开始讨论this&super这
阅读全文
摘要:package precisenumber; //import java.util.*;public class PreciseNumber { public int fore; public int after; public void DTI(double num)// double to in
阅读全文
posted @ 2017-02-25 15:03
千彧

浙公网安备 33010602011771号