Package com.hotmoka.examples.patterns.strategy

Examples of com.hotmoka.examples.patterns.strategy.MallardDuck


import com.hotmoka.examples.patterns.strategy.MallardDuck;

public class Main {

  public static void main(String[] args) {
    MallardDuck duck = new MallardDuck();
    WildTurkey turkey = new WildTurkey();
    Duck turkeyAdapter = new TurkeyAdapter(turkey);

    System.out.println("The Turkey says...");
    turkey.gobble();
View Full Code Here

TOP

Related Classes of com.hotmoka.examples.patterns.strategy.MallardDuck

Copyright © 2018 www.massapicom. 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.