GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 62 of 928    Print  
What is meant by abstract class

  
Total Answers and Comments: 5 Last Update: December 09, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 01, 2005 15:01:56   #1  
reena sahoo        

RE: What is meant by abstract class
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.
 
Is this answer useful? Yes | No
September 08, 2005 16:09:34   #2  
riteshyadav14@rediffmail.com        

RE: What is meant by abstract class
Class having atleast one abstract method is abstract class....that is methd without body section....
 
Is this answer useful? Yes | No
October 09, 2006 07:42:25   #3  
Smita        

RE: What is meant by abstract class
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.
 
Is this answer useful? Yes | No
October 09, 2006 07:46:51   #4  
smitac Member Since: October 2006   Contribution: 1    

RE: What is meant by abstract class
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.
 
Is this answer useful? Yes | No
December 09, 2006 01:10:35   #5  
santosh        

RE: What is meant by abstract class
abstract class nnothing but a class which can declear a data but in abclass the data canot shown it internaly working.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape