Which access specifiers should be used so that all the derived classes restrict further inheritance of base class members?
(a) Private
(b) Public
(c) Protected
(d) Any inheritance type can be used
This question was addressed to me during an internship interview.
The doubt is from Hierarchical Inheritance in division Inheritance & its Types of Object Oriented Programming