PHP Object-oriented (OOP)-what is object-oriented

Source: Internet
Author: User
OO programming (Object Oriented programming, OOP, object-oriented programming) is a computer programming architecture, and one of the basic principles of OOP is that a computer program is composed of a single unit or object that can act as a subroutine, with OOP reaching three of the software engineering Goals: reusability, flexibility, and extensibility. To achieve the overall operation, each object can receive information, process data, and send information to other objects. Object-oriented has always been a hot topic in the field of software development, first of all, object-oriented conforms to the general law of human beings ' view of things. Secondly, the use of object-oriented method can make all parts of the system perform their duties and his ability. Opens the door for programmers to make their programming code simpler, easier to maintain, and more reusable. Some people say that PHP is not a true object-oriented language, which is true. PHP is a mixed language, you can use OOP, or you can use traditional procedural programming. However, for large projects, you might want to use pure OOP in PHP to declare classes, and use only objects and classes in your project.

Simply put, it is a structure with high reusability, high flexibility and high expansibility.

The above describes the PHP object-oriented (OOP)-what is object-oriented, including aspects of the content, want to be interested in the PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.