What is meant by abstract class

Showing Answers 1 - 7 of 7 Answers

reena sahoo

  • Sep 1st, 2005
 

an abstract class is a class that says what a class has to do but does not define how to do. it cannot be instantiated and an abstact class has atleast one one abstract method.

  Was this answer useful?  Yes

riteshyadav14@rediffmail.com

  • Sep 8th, 2005
 

Class having atleast one abstract method is abstract class....that is methd without body section....

  Was this answer useful?  Yes

Smita

  • Oct 9th, 2006
 

Sometimes in the desin it would require that,object of a base class should not be created.But only use thee base class pointer for upcasting purpose.This is accomplished by making that class abstract, which happens if you give it at least one pure virtual function.When an abstract class is inherited, all pure virtual functions must be implemented, or the inherited class becomes abstract as well.At the same time, a pure virtual function forces inherited classes to provide a definition for it.

  Was this answer useful?  Yes

smitac

  • Oct 9th, 2006
 

Sometimes in the desin it would require that,object of a base class should not be created.But only use thee base class pointer for upcasting purpose.This is accomplished by making that class abstract, which happens if you give it at least one pure virtual function.When an abstract class is inherited, all pure virtual functions must be implemented, or the inherited class becomes abstract as well.At the same time, a pure virtual function forces inherited classes to provide a definition for it.

  Was this answer useful?  Yes

santosh

  • Dec 9th, 2006
 

abstract class nnothing but a class which can declear a data but in abclass the data canot shown it internaly working.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions