Untitled
unknown
plain_text
a year ago
383 B
6
Indexable
class A { void eat() { System.out.println("BCA"); } } class B extends A { void eats() { System.out.println("Drc"); } } class c extends B { void eat2() { System.out.println("Sec-A"); } public static void main(String args[]) { c obj= new c(); obj.eat(); obj.eats(); obj.eat2(); } }
Editor is loading...
Leave a Comment