prsubject
asked on
Interface vs Abstract Class
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.
My question is if we do not have a clear idea about the functionality how come we could design the interface.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
prsubject,
please refer http://www.javaworld.com/javaworld/javaqa/2001-04/03-qa-0420-abstract.html?page=1 for more understanding.