Home  >  Article  >  Backend Development  >  PHP study notes PHP object-oriented programming_PHP tutorial

PHP study notes PHP object-oriented programming_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:28:41829browse

Copy code The code is as follows:

/* PHP object-oriented programming
*
* PHP5
*
* Arrays and objects: both belong to PHP's composite types (one variable can store multiple units)
*
* Objects are more powerful than arrays and can not only store multiple data , you can also store functions in objects
*
* Three major characteristics of objects: encapsulation, inheritance, polymorphism
*
* Object-oriented programming (oop) //Conforms to reuse in software engineering Flexibility and scalability
*
* The difference between object-oriented and procedure-oriented
*
* Smallest unit: function // Process-oriented
* Smallest unit: object // Object-oriented
*
* What is an object
Recently, Sina’s management began to cash out, and public information disclosed that the MBO made the management become Sina’s largest shareholder with high spirits, but today, they have become became the second largest shareholder. The difference in equity ratio is not big: there is only a 0.1% gap from the largest shareholder FMR's ratio of 9.24%. However, Sina's management has an agreement to sell equity. If this part of the equity that may be sold in the future is included, the management will only have 5.74% left. Sina may indeed become an "ownerless company" again.
This is Sina’s future trouble as a company: the profit model is unclear, and the possibility of ownerlessness has begun to emerge again.
* The object is an entity
* Object:
* Member properties==Variables//Defines the appearance and state of the object
* Member methods==Functions//Defines the functionality of the object
*
* What is a class? A relationship
*
* declares a class --> instantiates an object (creates an object) --> uses an object
*
*
* The most difficult thing is how to design an object-oriented approach procedural, rather than object-oriented syntax.
*
*/
?>


Author: Codename Aurora
Source: http://zizhuyuan.cnblogs.com


http://www.bkjia.com/PHPjc/323523.html
www.bkjia.com

truehttp: //www.bkjia.com/PHPjc/323523.htmlTechArticleCopy the code code as follows: ?php /* PHP object-oriented programming * * PHP5 * * Arrays and objects: They all belong to PHP's composite types (one variable can store multiple units) * * Objects are better than arrays...
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