Please provide me a simple good example for using "extends" & "implements" keyword.
I tried to search in google but can not find any simple and easy example to have a good knowledge of these keywords.
Printable View
Please provide me a simple good example for using "extends" & "implements" keyword.
I tried to search in google but can not find any simple and easy example to have a good knowledge of these keywords.
Have you done a search here on the forum? There are many sample programs here that use both of those keywords.
Also see the tutorial:
http://docs.oracle.com/javase/tutori...interface.html
http://docs.oracle.com/javase/tutori...ubclasses.html