Computer Science, asked by Anonymous, 6 months ago

Which class can have a pure virtual function, base class or derived class? Explain why or why not.

Answers

Answered by caramya2k8
1

Answer:

here is the answer

Explanation:

Abstract class cannot be instantiated, but pointers and refrences of Abstract class type can be created. Abstract class can have normal functions and variables along with a pure virtual function. Abstract classes are mainly used for Upcasting, so that its derived classes can use its interface.

hope it works out

Similar questions