1.

We ___________________ to an abstract class.(a) Can create pointers(b) Can create references(c) Can create pointers or references(d) Can’t create any reference, pointer or instanceThe question was asked in an online interview.The origin of the question is Abstract Class in division Classes of Object Oriented Programming

Answer»

The correct option is (c) Can CREATE pointers or references

Explanation: Even though there can’t be any INSTANCE of abstract class. We can ALWAYS create POINTER or reference to abstract class. The member functions which have some implementation inside abstract itself can be USED with these references.



Discussion

No Comment Found

Related InterviewSolutions