0

Why this code doesn't print "I am Mother in Interface" ?

Why this code doesn't print "I am Mother in Interface" ? Can anyone assist me to resolve this... Also can anyone say what could be the possible "Access-Specifier" and "Modifier" in this code. Also, my doubt is that "Can we give function definition in Interface" ? If yes, then how can we access the function definition give in an Interface...? https://code.sololearn.com/cM55784yAuSE/#cs

8th Dec 2019, 2:48 AM
Kiran Deep Naidu
Kiran Deep Naidu - avatar
3 Respuestas
+ 2
https://code.sololearn.com/ctviyT7TmGmy/?ref=app
8th Dec 2019, 7:26 AM
Kail Galestorm
Kail Galestorm - avatar
+ 1
An interface does not deal in implantation. It outlines what work must be done, not how to do it. From your code, it looks like you want to inherit from a person base class and override the mother method.
8th Dec 2019, 7:07 AM
Kail Galestorm
Kail Galestorm - avatar
+ 1
Thanks Kail Galestorm, for your valuable answer and this helped me a lot to learn new things by clarifying my doubt,...
8th Dec 2019, 4:23 PM
Kiran Deep Naidu
Kiran Deep Naidu - avatar