Наследование: CompanyA.Phone
        public void Run()
        {
            //Phone phone = new Phone();
            BetterPhone betterPhone = new BetterPhone();

            //phone.Dial();
            betterPhone.Dial();
        }
Пример #2
0
 public static void Main() {
    CompanyB.BetterPhone phone = new CompanyB.BetterPhone();
    phone.Dial();
 }
 public static void Main()
 {
     CompanyB.BetterPhone phone = new CompanyB.BetterPhone();
     phone.Dial();
 }