1.

How many ways of reusing are there in the class hierarchy?(a) 1(b) 2(c) 3(d) 4This question was addressed to me during an online exam.My doubt is from Design of Class Hierarchies topic in division Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The CORRECT choice is (B) 2

Easiest explanation - CLASS hierarchies PROMOTE reuse in two WAYS. They are code sharing and interface sharing.



Discussion

No Comment Found

Related InterviewSolutions