Technical Discussion :: Java
Home > Freshers > Technical Interview Questions > Java
3. 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 :: Wipro iGate Syntel Inc. Accenture Sopra Steria Societe Generale
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.