December2015 Cs Q12

0. Consider the following two statements:
(a) A publicly derived class is a subtype of its base class.
(b) Inheritance provides for code reuse.
Which of the following statements is correct?

  • Option : A
  • Explanation :
  • A publicly derived class is a subtype of its base class.
  • Inheritance provides for code reuse.
  • So, option (A) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *