1.

Which one of the following property scopes is not supported by PHP?(a) friendly(b) final(c) public(d) staticThe question was posed to me in an interview.Question is taken from Basics of Object-Oriented PHP- 1 in section Object-Oriented PHP of PHP

Answer»

Right option is (a) friendly

To explain: PHP supports FIVE class property SCOPES: PUBLIC, private, protected, final and STATIC.



Discussion

No Comment Found

Related InterviewSolutions