You are viewing a single comment's thread. Return to all comments →
class Bird extends Man{ void fly(){ System.out.println("I am flying"); }
} class Man extends Animal{ void sing(){ System.out.println("I am singing"); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Inheritance I
You are viewing a single comment's thread. Return to all comments →
class Bird extends Man{ void fly(){ System.out.println("I am flying"); }
} class Man extends Animal{ void sing(){ System.out.println("I am singing"); } }