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 09:30:01 #2
 Miten Mehta J2EE Expert  Member Since: December 2005    Total Comments: 2 

RE: What is the use of abstract classes? How will we d...
 
Use case will lead you to entities. These might be leading to is-A relationship. Such relationship is usually rooted with Abstract classes which provides polymorphism and also lead to application of many design patterns such as Abstract Factory, template, strategy and many others.
     

 

Back To Question