java-Object-oriented
1. Programming Ideas
1. Process oriented
Event-centric
Cons: Difficult to maintain, poor reusability
2. Object-oriented
Take things as the center
Advantages: Easy maintenance, good reusability
2. Basic
1. Class
Collectively, the same class of things
A carrier for encapsulating the attributes and behavior of a class of things
Function: Define the class first and then generate the object from the class
2. Object
Object is an instance of a class
Entities in existence: static characteristics (attributes), dynamic features (methods)
3. Characteristics
1. Encapsulation defines the class (the property of the class corresponds to the property of the Thing) (the method of the class corresponds to the behavior of the thing)
2. Inheriting subclasses can automatically inherit members exposed by the parent class
3. Members of polymorphic classes have multiple forms
java-Object-oriented