GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  OOPS

 Print  |  
Question:  What is the use of abstract classes? How will we decide in a scenario, whether we have to use abstract class or interface?



December 12, 2005 08:13:00 #1
 Sachin Microsoft Expert  Member Since: November 2005    Total Comments: 1 

RE: What is the use of abstract classes? How will we d...
 
Abstact classses are those classes which can have abstact as well as Method with body . we use Abstract classes becouse we wont ot implement the Polymorphism.yes we should prefer the abstarct class becouse it will give us the addtional method declaration in the class.
     

 

Back To Question