Main reason for the existence of interfaces in Java is: to support multiple inheritance. Languages supporting multiple implementation inheritance, an interface is equivalent to a fully abstract class (a class with only public abstract members).
The above differentiation suggests when to use an abstract class and when to use an interface:
In general, prefer interfaces if you don't need to use an abstract class, because they provide more design flexibility.
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: March 18, 2005 If you enjoyed this post then why not add us on Google+? Add us to your Circles