What are the three major characteristics of object-oriented
The three major characteristics of object-oriented areencapsulation, Inheritance,Polymorphism.
(Related video tutorial sharing: java video tutorial)
What is encapsulation?
Encapsulate objective things into abstract classes, and classes can only allow trusted classes or objects to operate their data and methods, and hide information from untrusted classes. To put it simply: encapsulation separates the designer of the object from the user of the object. The user only needs to know what the object can do, and does not need to know how it is implemented. Encapsulation can help improve class and system security.
What is inheritance?
Inheritance refers to creating a new derived class that inherits data and functions from one or more previously defined classes. It can redefine or add new data and functions, thus establishing a class. level or grade.
What is polymorphism?
Polymorphism refers to: The same operation performed on instances of different classes will produce different execution results, that is, when objects of different classes receive the same message, they will get different results.
Object-oriented (Object Oriented) is a software development method. Object-oriented concepts and applications have transcended programming and software development and expanded to fields such as database systems, interactive interfaces, application structures, application platforms, distributed systems, network management structures, CAD technology, artificial intelligence and other fields. Object-oriented is a method of understanding and abstracting the real world. It is the product of the development of computer programming technology to a certain stage.
For more Introduction to Programming Tutorials, please pay attention to the PHP Chinese website!
The above is the detailed content of What are the three major characteristics of object-oriented. For more information, please follow other related articles on the PHP Chinese website!