1.

# is the visibility code for?(a) Private(b) Friendly(c) Protected(d) StaticI had been asked this question during an interview.I need to ask this question from Object and Design-2 topic in division Object Tools and Design and Variables in PHP of PHP

Answer»

Correct OPTION is (C) Protected

Easy EXPLANATION: Available to the CURRENT CLASS and its subclasses only.



Discussion

No Comment Found

Related InterviewSolutions