MCQOPTIONS
Saved Bookmarks
| 1. |
If the protected members are to be made accessible only to the nearest subclass and no further subclasses, which access specifier should be used in inheritance? |
| A. | The sub class should inherit the parent class privately |
| B. | The sub class should inherit the parent class as protected |
| C. | The sub class should inherit the parent class as public |
| D. | The sub class can use any access modifier |
| Answer» B. The sub class should inherit the parent class as protected | |