MCQs>IT & Programming>PHP>Difference between public, protected and private in a class definition?
PHP MCQs
What is the difference between public, protected and private in a class definition?
Answer
Correct Answer: Public makes a class member available to "everyone", protected makes the class member available to only itself and derived classes, private makes the class member only available to the class itself.
Explanation:
Note: This Question is unanswered, help us to find answer for this one