| Author |
abtract class and interface
|
Eshwin Sukhdeve
Ranch Hand
Joined: Mar 15, 2012
Posts: 78
|
|
hi,
suppose I have one abstract class.it contains all methods as abstract.and I have one interface..by defualt interface having all
methods abstract.in this case both having same behaviour.then why we chosse either interface or abstract class.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Please SearchFirst. This exact question has been posed many times.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8566
|
|
And we even have a FAQ for it http://www.coderanch.com/how-to/java/InterfaceVsAbstractClass
This would be more suitable on the beginners forum. Moving
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Eshwin Sukhdeve
Ranch Hand
Joined: Mar 15, 2012
Posts: 78
|
|
|
thanks for help
|
 |
 |
|
|
subject: abtract class and interface
|
|
|