PHP Learning Note PHP Object-oriented Programming _php tutorial

Source: Internet
Author: User
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 ...

  • 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.