Java doesn't support multiple inheritance still if we want to inheritate the onemethod in more than one class we can define it abstract in interface and we can use it in our class by simply implementing that interface. In this we make our class loosely coupled...

1 User has rated as useful.
Login to rate this answer.
Amol
Answered On : Sep 29th, 2011
But then need to implements all methods of interface.
Login to rate this answer.
Java doesnt support multiple inheritance still if we want to inheritate the one method in more than one class we can define it abstract in interface and we can use it in our class by simply implementing that interface. In this we make our class loosely coupled...
Login to rate this answer.