Java Programming Tutorial - 57 - Overriding Rules on January 30, 2020 Get link Facebook X Pinterest Email Other Apps package apples; public class Fatty { b banana = new b(); public void digest (b x) { x.eat(); } } package apples; abstract public class b { void eat() { System.out.println("this food is great"); } } Comments
Comments
Post a Comment