A class has its default constructor defined as public. Class B inherits class A privately. The class ___________
(a) B will not be able to have instances
(b) Only A can have instances
(c) Only B can have instances
(d) Both classes can have instances
The question was posed to me in an interview.
The question is from Public Access Specifier topic in chapter Access Specifiers of Object Oriented Programming