JAVA Reresher
1> Class ----类
2> Object ----实例对象
3> State(instance variables)----状态:实例变量
4> behavior (Method) ----行为:方法
Identifiers and Keywords
KEY WORD: identifiers(标示符) legal(语法约束) keywords(保留字)
KEY INFO : Java programmers (and Sun) have created conventions for naming methods, variables, and classes.
Inheritance
KEY INFO : The superclass knows nothing of the classes that inherit from it,
but all of the subclasses that inherit from the superclass must explicitly declare the inheritance relationship.
but is also free to override superclass methods to define more specific behavior.
Interface
KEY INFO : Interfaces are like a 100-percent abstract superclass that defines the methods a subclass must support, but not how they must be supported.
Finding Other Classes
KEY INFO : Java organizes classes into packages, and uses import statements to give programmers a consistent way to manage naming of, and access to, classes they need.
本文介绍了Java编程中的核心概念,包括类、对象、实例变量及方法等基本构成元素,并阐述了标识符与关键字的使用规范。此外,还探讨了继承与接口的概念,以及Java中类的组织方式与访问控制。
462

被折叠的 条评论
为什么被折叠?



