ExamVeda
Login
Home
Object Oriented Programming Using C Plus Plus
?

When a class is derived from another derived class, the newly derived class

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Arvind Maurya
Arvind Maurya 2 years ago
When a class is derived from another derived class, the newly derived class:

D. both (b) and (c)

Explanation:

In C++, the access level to base class members is determined by the access specifiers (public, protected, private) used in inheritance and by the access control within the base class itself. The derived class can have:

The same type of access to base class members as its immediate predecessor if the inheritance access specifier does not restrict access further.
More limited access to base class members than its immediate predecessor if the inheritance access specifier or the base class member access specifier imposes more restrictions.