Interface vs Abstract Class
Posted on 2011-04-19
Generally when anyone says when or why do we use Interface instead of extending from class, the answer immideately given is Java doesn't support multiple inheritence hence we use interface. Some people say that it is bookish and the more better answer is if we do not have a clear idea about the code that goes into that function we frame the interface if not we can go for abstract class.
My question is if we do not have a clear idea about the functionality how come we could design the interface.