Which class can have a pure virtual function, base class or derived class? Explain why or why not.
Answers
Answered by
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
Physics,
4 months ago
English,
4 months ago
World Languages,
4 months ago
Math,
9 months ago
Science,
9 months ago
Science,
1 year ago
India Languages,
1 year ago