If public members are to be restricted from getting inherited from the subclass of the class containing that function, which alternative is best?
(a) Make the function private
(b) Use private inheritance
(c) Use public inheritance
(d) Use protected inheritance
I have been asked this question by my college director while I was bunking the class.
I'd like to ask this question from Public Member Functions topic in division Member Functions & its Types of Object Oriented Programming