One package:
Class 1: Encapsulating the properties and behavior of an object
2 Method: Encapsulation is a specific business logic implementation
3 Access control: encapsulates specific access rights
2 Inheritance:
1 function: Reuse of code
2 A superclass has properties and behaviors that are common to all derived classes, and interfaces have behaviors common to some derived classes, and derived classes have properties and behaviors that are unique to derived classes
3 transitive, single inheritance, multiple interface implementations
3 polymorphism:
1 Behavioral polymorphism (abstract methods are polymorphic)
?
2 Object polymorphism (all objects are polymorphic)
3 upward styling, forced type conversion, instanceof
4 polymorphic representation: rewrite: behaves differently depending on the object. Overloading: Expressing polymorphism based on different parameters
Three main features of Java object-oriented