Programming to interface is much better than implementation and interface is more cleaner than abstract class , also another advantage is that you can only extends one class in Java so your class can only extend one behavior but if you implement interface you can implement interface which is used to specify Adjective so you can be Flyable, Walkable and same time Quack-able .
2 comments:
Programming to interface is much better than implementation and interface is more cleaner than abstract class , also another advantage is that you can only extends one class in Java so your class can only extend one behavior but if you implement interface you can implement interface which is used to specify Adjective so you can be Flyable, Walkable and same time Quack-able .
Thanks
What is Java Class in Java Programming with Example
hello ... sir thanks for your small explanation of difference but can you explain a question :
why java provides minimum supports to boolean
please sir ... its very important ...
Post a Comment