A

Admin • 833K Points
Coach

Q. How can you make a method accessible only within its own class and by inheriting classes?

  • (A) private
  • (B) public
  • (C) protected
  • (D) static
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Protected methods are accessible within the class and by classes derived from it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.