If a class have default constructor defined in private access, and one parameter constructor in protected mode, how will it be possible to create instance of object?
(a) Define a constructor in public access with different signature
(b) Directly create the object in the subclass
(c) Directly create the object in main() function
(d) Not possible
This question was addressed to me in my homework.
My doubt stems from Protected Access Specifier topic in chapter Access Specifiers of Object Oriented Programming