Q:

While inheriting a class, if no access mode is specified, then which among the following is true? (in C++)

0

While inheriting a class, if no access mode is specified, then which among the following is true? (in C++)


  1. It gets inherited publicly by default
  2. It gets inherited protected by default
  3. It gets inherited privately by default
  4. It is not possible

All Answers

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

(c).It gets inherited privately by default

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

total answers (1)

OBJECT ORIENTED PROGRAMMING INHERITANCE AND ITS TYPES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If a derived class object is created, which constr... >>
<< Members which are not intended to be inherited are...