1.

Class HumanParent class or base class or super class{void work(){System.out.println("Human can work");}base classvoid eat(){System.out.println("Human can eat");} Child class or sub class orParent class or super class orderived class}public class Enginner extends Human{keywordpublic static void main(String[] args){Enginner E=new Enginner();E.work();E.eat();}}OUTPUTI want explanation for this program in java inheritance​

Answer»

ANSWER:

jejrbkkebr kejnene. RCB



Discussion

No Comment Found