Technical Discussion :: Java
Home > Technical Interview Q&A > Java > Discussion
7 / 66
What is an abstract class?Can we instantiate an abstract class?
Answer:
A virtual function, equated to zero is called a pure virtual function. It is a function declared in a base class that has no definition relative to the base class. A class containing such pure function is called an abstract class.
It objectives are
• Provide some traits to the derived classes.
• To create a base pointer required for achieving run time polymorphism.
Asked In ::
Mukesh
23 Feb, 2019 5:07 AM
A virtual function, equated to zero is called a pure virtual function. It is a function declared in a base class that has no definition relative to the base class. A class containing such pure function is called an abstract class.
It objectives are
• Provide some traits to the derived classes.
• To create a base pointer required for achieving run time polymorphism.
It objectives are
• Provide some traits to the derived classes.
• To create a base pointer required for achieving run time polymorphism.