Link to home
Start Free TrialLog in
Avatar of prsubject
prsubjectFlag for India

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.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Agreed with CEHJ, it's an implementation.

prsubject,
please refer http://www.javaworld.com/javaworld/javaqa/2001-04/03-qa-0420-abstract.html?page=1 for more understanding.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)