Home> Common Problem> body text

What are the three major characteristics of object-oriented

angryTom
Release: 2020-02-29 14:51:47
Original
49149 people have browsed it

What are the three major characteristics of object-oriented

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 moreIntroduction 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!