Three characteristics of object-oriented
Packaging
Encapsulation is the organization of processes and data, access to data only through defined methods.
The purpose of encapsulation is to separate the object's consumer from the designer, and the user does not need to know the details of the behavior implementation, simply using the message from the designer to access the object
Inherited
The new class can obtain properties and behaviors for an existing class (called a superclass, base class, or parent Class), which is called the new class as a derived class (also known as a subclass) of an existing class.
Inheritance can increase the reusability of code and add functionality based on the ability to have a parent class.
Polymorphic
Sends a message to an object, allowing the object to decide for itself what behavior to respond to. Can be understood as a transverse override on a vertical overlay.
The advantage of flexible, abstract, behavioral sharing, and code sharing, which solves the problem of application method with the same name.
java-Object-oriented