Package com

Examples of com.Menu.process()


        Menu menu2 = new Menu(2, "bebek", MenuType.ROASTED);
        Menu menu3 = new Menu(3, "bebek biasa"); // ini mirip yg kmrn

        menu1.process(duck);
        menu2.process(duck);
        menu3.process(duck);
    }

    /* contoh method dengan argument parameter polymorphism */
    public void wash(PAnimal animal) {
        System.out.println("washing animal weight "+ animal.getWeight() + " kilograms");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.