Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

Explain the visibility of the property or method.?

      The visibility of a property or method must be defined by prefixing the declaration with the keywords public, protected or private.
    Class members declared public can be accessed everywhere.
    Members declared protected can be accessed only within the class itself and by inherited and parent classes.
    Members declared as private may only be accessed by the class that defines the member.

asked Sep 13, 2013 in PHP by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

Government Jobs Opening