First, this; class variable/class method
1.this: Used to differentiate between properties in a constructed method (only used internally)
2. Class variable: (access modifier) static data type variable name
Access method: Class name. Variable name (or object name). Class variable name)
3. Class method: (access modifier) static data type variable name
Access method: Class name. The class method name (or object name). class method Name)
Second, encapsulation: access modifiers:
Iii. Inheritance: Resolving code Reuse (Java is a single inheritance, differences and multiple inheritance of C + +)
1. Method: Class Subclass extends Parent class
2. Note: A subclass inherits at most one parent class; b Java all classes are subclasses of the object class;
Method overloading (overloading): In the same class, a function with the same name is allowed, but the number of arguments or the type of the parameter is different.
Method overrides (overriding): Subclasses override parent class methods.
Java Basics Review