Inheritance and Interface in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Inheritance and Interface in java

Is the method show of Inter interface had been implemented by the Program clsss? https://code.sololearn.com/c07s0GhPR03y/?ref=app

25th Sep 2017, 5:00 PM
Balaji Sridharan
Balaji Sridharan - avatar
1 Answer
0
As far as i understand, you don't have to implement Show() explicitly in the Program class, because you already have a Show() method inherited from the Parent class, the interface just uses that one as the implementation for the Inter interface.
25th Sep 2017, 5:28 PM
Pablo Saavedra R
Pablo Saavedra R - avatar