112k views
0 votes
Members that are protected in the super class are visible in the derived class.

a) True
b) False

User Barbarossa
by
7.2k points

1 Answer

5 votes

Final answer:

Members that are protected in the super class are visible in the derived class.

Step-by-step explanation:

False

In an inheritance hierarchy, a derived class inherits members from its superclass. However, the visibility of these inherited members is determined by their access specifiers. If a member in the superclass is declared as protected, it can be accessed by the derived class and any classes derived from it. Therefore, the statement is true.

User Martin Blaustein
by
7.9k points