| |
GeekInterview.com > Interview Questions > J2EE > Core Java
| Print | |
Question: Usage of Abstract class and Interfaces
Answer: In Real time when we go for Abstract classes and when we go for Interfaces |
| July 07, 2008 08:13:20 |
#2 |
| geeky1 |
Member Since: July 2008 Total Comments: 2 |
RE: Usage of Abstract class and Interfaces |
Depends on the design consideration. If one wants the design to be flexible then go for the interface else abstract class. The abstract class can contain default implementation which is inherited by the subclasses by default. If you are looking for performance then abstract class is the best choice |
| |
Back To Question | |