when we are going for abstract class or interface
Hi,
I what situation we are going for abstract class or interface.anybody explain me with example waht are the conditions we decided wether it is abstract class or interface
Thanks a lot
Rajeev.a
Hi,
I what situation we are going for abstract class or interface.anybody explain me with example waht are the conditions we decided wether it is abstract class or interface
Thanks a lot
Rajeev.a
Use an interface when you want to just define a type without providing implementation, or when you might want it to be multiply inherited.
Use an abstract class when these conditions don't apply.
For more details, google for something like java abstract class vs. interface.