package apples;
public class boy {
public static void main (String []args) {
apples applesObject =new apples();
cup cupObject = new cup();
applesObject.eat();
cupObject.eat();
}
}
package apples;
public class apples extends b {
}
package apples;
public class cup extends b {
}
package apples;
public class b {
public void eat(){
System.out.println("I am the eat methods");
}
}
Comments
Post a Comment