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. They can not only store multiple data, but also store functions in objects
*
* Three major characteristics of objects: encapsulation, inheritance, polymorphism
*
* Object-oriented Programming (oop) //Comply with reusability, flexibility and scalability in software engineering
*
* The difference between object-oriented and process-oriented
*
* The smallest unit: function //Process-oriented
* The smallest unit: object //Object-oriented
*
* What is an object
Recently, Sina’s management has begun to cash out, and public information disclosed that the MBO that year made the management become Sina’s largest shareholder with high spirits, but today, they have become the second largest shareholder 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.
* An object is an entity
* Object:
* Member attributes == variables // define the appearance and status of the object
* member methods == functions // define the functions of the object
*
* What is a class
* Classification, type , Custom type
*
* Define the attributes and methods of this type in the class
*
* A relationship between a class and an object
*
* Declare a class --> Instantiate an object (create an object) --> ;Using objects
*
*
* The most difficult thing is how to design an object-oriented program, not object-oriented syntax.
*
*/
?>
The above introduces the photoshop learning forum, php learning notes, PHP object-oriented programming, including the content of the photoshop learning forum. I hope it will be helpful to friends who are interested in PHP tutorials.