Copy CodeThe code is as follows:
/* PHP Object-oriented programming
*
* PHP5
*
* Arrays and objects: a compound type of PHP (one variable can store multiple units)
*
* Objects are more powerful than arrays, not only can you store multiple data, but you can also have functions that exist in objects
*
* Three main features of the object: encapsulation, inheritance, polymorphism
*
* Object-Oriented Programming (OOP)//compliance with reusability flexibility extensibility in software engineering
*
* Object-oriented and process-oriented differences
*
* Smallest unit: function//Process oriented
* Smallest Unit: Object//Object-oriented
*
* What is an object
Recently, Sina management began to cash out, the public disclosed that the MBO made the management of the first major shareholder of Sina, can today, they have become the second largest shareholder. The share ratio is not very big: the ratio of fmr9.24% with the first shareholder is only 0.1% of the distance. But Sina's management has an agreement to sell shares, and if that part of the stake is likely to be sold in the future, management will have only 5.74% left. It is true that Sina is likely to become a "no-master Company" again.
This is Sina as a company, the future of trouble: The profit model is not clear, the possibility of non-master began to unfold.
* object is an entity
Object
* member Property = = variable//defines the appearance and state of the object
* member Method = = function//function to define Object
*
* What is a class
* classification, type, custom type
*
* Define properties and methods of this type in the class
*
* A relationship between a class and an object
*
* Declaring classes--instantiating objects (creating objects)--working with objects
*
*
* The most rare is how to design object-oriented programs, rather than object-oriented syntax.
*
*/
?>
Author: codenamed Aurora
Source: http://zizhuyuan.cnblogs.com
http://www.bkjia.com/PHPjc/323523.html www.bkjia.com true http://www.bkjia.com/PHPjc/323523.html techarticle Copy the code as follows:? PHP/* Object-oriented Programming for PHP * * PHP5 * * Arrays and objects: all of the compound types of PHP (one variable can store multiple units) * * Object than array ...