PHP learning notes -- [PHP Object-Oriented Programming]

Source: Internet
Author: User
Tags php source code

Introduction: This is a PHP learning note ------ [PHP object-orientedProgramThe detailed page of the design] describes the PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 338287 'rolling = 'no'>

 
<? PHP/* PHP Object-Oriented Programming ** PhP5 ** array and object: both belong to the PHP compound type (one variable can store multiple units) ** objects are more powerful than arrays. They not only store multiple data, but also store functions in the following three main features of ** objects: encapsulation, inheritance, and polymorphism ** Object-Oriented Programming (OOP) // conforms to reusability flexibility and scalability in software engineering ** differences between object-oriented and process-oriented ** minimum unit: function // process-oriented * smallest unit: Object // object-oriented ** what is an object? Recently, Sina's management layer began to cash in and publish messages, the MBO of that year made the management a top shareholder of Sina, and now they have become the second biggest shareholder. The equity ratio is not much different: it is only 0.1% different from fmr9.24 %, the largest shareholder. However, the Sina management layer has an agreement on selling shares. If this part of the shares may be sold in the future, the management will only have 5.74%. Sina may indeed become an "unowned Company" again ". This is why Sina, as a company, has troubles in the future: the profit model is unclear and the possibility of being unmaster begins to show up again. * The object is an entity * object: * Member attributes = variables // define the object's appearance and status * member methods = functions // define the object's functions ** what is a class * category, type, custom type * * define attributes and methods of this type in the class ** a relationship between classes and objects ** Declaration class --> instantiate an object (create an object) --> how to design a forward Object Program rather than the object-oriented syntax is the most rare thing to use the object. **/?>

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/338287.html pageno: 8.

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.