Which among the following can restrict class members to get inherited?
(a) Private
(b) Protected
(c) Public
(d) All three
The question was posed to me in an internship interview.
My doubt stems from Access Specifiers in division Access Specifiers of Object Oriented Programming