import org.calculator.core.Processor;
import org.calculator.io.Display;
import org.calculator.io.Keypad;
/**
* Created by awibowo on 7/24/2014.
*/
public class Main {
// Calculator main method
public static void main(String[] args) {
Keypad keypad = new Keypad();
Processor processor = new Processor();
Display _display = new Display(processor, keypad);
_display.display();
}
// Duck main method
/* public static void main(String[] args){
/*Duck duck = new Duck();
duck.eat(8);
duck.sleep(10);
Cooker cooker = new Cooker();
cooker.cook(duck);
//ini polymorphism
PAnimal animal1 = new PAnimal();
animal1.sleep(5);
PAnimal animal2 = new Duck();
animal2.sleep(5);
//casting ke Duck jg bisa, asal create nya Duck jg
Duck duck1 = (Duck) animal2;
duck1.sleep("BED", 8); // panggil overload method
/*contoh casting yg ga boleh, karena animal1 di-create dari PAnimal
klo di-compile jalan, tapi pas di-run akan keluar exception*/
// Duck duck1 = (Duck) animal1;
// duck1.sleep("OFFICE",1);
/* //pemanggilan method dengan parameter polymorphism
cooker.wash(duck);
} */
}