Home >Backend Development >PHP Tutorial >php object-oriented (OOP) - what is object-oriented

php object-oriented (OOP) - what is object-oriented

WBOY
WBOYOriginal
2016-08-08 09:23:141075browse

Object-oriented programming (OOP, object-oriented programming) is a computer programming architecture. One of the basic principles of OOP is that a computer program is composed of a single unit or object that can function as a subroutine. OOP The three goals of software engineering are achieved: reusability, flexibility and scalability. In order to realize the overall operation, each object can receive information, process data and send information to other objects. Object-oriented has always been a popular term in the field of software development. First of all, object-oriented is in line with the general rules of how humans look at things. Secondly, the use of object-oriented methods allows each part of the system to perform its duties and perform its duties. This opens the door for programmers to write code that is simpler, easier to maintain, and more reusable. Some people say that PHP is not a true object-oriented language, and this is true. PHP is a hybrid language, you can use OOP or traditional procedural programming. However, for large projects, you may need to use pure OOP to declare classes in PHP, and only use objects and classes in your project.

To put it simply, it is an architecture with high reusability, high flexibility and high scalability;

The above introduces PHP object-oriented (OOP) - what is object-oriented, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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