摘要
在PHP程序设计语言中,public,protected,private是面向对象的三种访问控制修饰符。其中,修饰符private修饰的类中成员属性或方法的访问限制最严格,只能在该类的内部访问。本文详细地分析了private修饰符及构造器constructor的应用。
In PHP programming language, public, protected and private are three kinds of access control modifiers of object-oriented programming. The properties of a class modified by private can visit only inner of the class. Modifiers private and constructor are introduced in detail.
出处
《数字技术与应用》
2016年第6期181-181,共1页
Digital Technology & Application