photoshop learning forum php learning notes PHP object-oriented programming

WBOY
Release: 2016-07-29 08:45:34
Original
1083 people have browsed it

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.
*
*/
?>


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

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template