Q:

If public members are to be restricted from getting inherited from the subclass of the class containing that function, which alternative is best?

0

If public members are to be restricted from getting inherited from the subclass of the class containing that function, which alternative is best?


  1. Make the function private
  2. Use private inheritance
  3. Use public inheritance
  4. Use protected inheritance

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).Use private inheritance

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING MEMBER FUNCTIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
A derived class object can access the public membe... >>
<< Which public function call among the following is ...