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 ?
- A.
Both statements (a) and (b) are correct
- B.
Neither of the statements (a) and (b) are correct
- C.
Statement (a) is correct and (b) is incorrect
- D.
Statement (a) is incorrect and (b) is correct
Attempted by 439 students.
Sign up free to check your answer
Sign up freeLoading lesson…

