Consider the following two statements: (a) A publicly derived class is a…

UGC NET 2015

Consider the following two statements:

(a) A publicly derived class is a subtype of its base class.

(b) Inheritance provides for code reuse.

Which one of the following statements is correct ?

  1. A.

    Both statements (a) and (b) are correct

  2. B.

    Neither of the statements (a) and (b) are correct

  3. C.

    Statement (a) is correct and (b) is incorrect

  4. D.

    Statement (a) is incorrect and (b) is correct

Attempted by 439 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…