Which access specifier makes the class member accessible outside the class but can be accessed by any subclass of that class?

51. Which access specifier makes the class member accessible outside the class but can be accessed by any subclass of that class?

  1. Private
  2. Public
  3. Protected

Answer: C) Protected

Explanation:

Protected access specifier makes the class member accessible outside the class but can be accessed by any subclass of that class.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.