1.

Which among the following is an important use of abstract classes?(a) Header files(b) Class Libraries(c) Class definitions(d) Class inheritanceI have been asked this question in a job interview.This interesting question is from Abstract Class in section Classes of Object Oriented Programming

Answer»

Right answer is (B) Class Libraries

To explain I would say: The abstract classes can be used to create a generic, extensible class LIBRARY that can be used by other PROGRAMMERS. This helps US to get some already implemented codes and functions that might have not been provided by the programming language itself.



Discussion

No Comment Found

Related InterviewSolutions