hey friends i m new to java , i learn that after implementing interface, we have override all its method bt in below code show1() is not override but it is extending by Mynewclass,, can anybody explain me that concept,, thank you.
A class only has to implement all the methods in the interface if it is not "abstract." If it is abstract, the unimplemented methods, act as abstract methods in the class and the subclass has to implement it.
Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.
Using a title such as "confusion" isn't going to attract the attention of those who can best help you.
You can change your subject line by clicking the button on your post.