Example #1
0
        static void Main(string[] args)
        {
            SuperBot steven = new SuperBot();

            steven.Bark();
            Dog bailey = new Dog();

            bailey.Bark();
        }
Example #2
0
        static void Main(string[] args)
        {
            SuperBot steven = new SuperBot(new Dog(), new Robot(), new CleanRobot());

            steven.Bark();
        }