Brief introduction of 2.1.1 structured programming
Three basic structures of the 2.1.2 program
- Sequential structure
- Select Structure Single Select double Select multiple selection
- Cyclic structure as type cycle to type cycle
2.1.3 Introduction to Object-oriented programming
- Field+method=class
- Pig. Eat (watermelon);
The basic features of 2.1.4 object-oriented
- Encapsulation: hides the implementation details of an object and then exposes the object's functionality through some common methods
- Inheritance: When a subclass inherits from a parent class, the child class, as a special parent class, gets the properties and methods of the parent class directly
- Polymorphic: A Subclass object can be assigned directly to the parent class variable, but the runtime still shows the behavior characteristics of the subclass, meaning that the same type object may exhibit multiple behavioral characteristics when executing the same method
"Crazy Java Handout-Reading Notes" 2.1 Object-oriented