摘要:
继承、抽象类和接口 "继承的概述" 代码示例: class Person{ String name; int age; char sex; String idcard; } class Students extends Person{ public void study(){ System.out. 阅读全文
摘要:
静态的(static)和单例模式 main函数 主函数是一个特殊的函数,作为程序的入口,可以被jvm调用 主函数的定义 public 表示该函数的访问权限是最大的。 static 代表主函数随着类的加载就已经存在了。 void 主函数没有具体的返回值。 main 不是关键字,但是是一个特殊的单词,但 阅读全文