Пример #1
0
        static void Main(string[] args)
        {
            var realHoliday = new ActuallyGo();

            realHoliday.BookHotel();
            realHoliday.GetMoney();
            realHoliday.GetThere();
            realHoliday.VisitNamibia();
        }
Пример #2
0
        static void Main(string[] args)
        {
            //var abstractHoliday = new Holiday();    this does not work
            //abstract class : CODE MISSING
            var realHoliday = new ActuallyGo();

            realHoliday.BookHotel();
            realHoliday.GetMoney();
            realHoliday.GetThere();
            realHoliday.VisitNamibia();     // concrete class (ALL CODE COMPLETE)
        }