static void Main(string[] args) { Renault reno = new Renault("Рено", "Renault LOGAN Active", 499.0); Print(reno); AutoBase myreno = new MediaNAV(reno, "Навигация"); Print(myreno); AutoBase newmyReno = new SystemSecurity(new MediaNAV(reno, "Навигация"), "Безопасность"); Print(newmyReno); Audi audi = new Audi("Ауди", "Audi A6", 800.0); Print(audi); AutoBase warmAudi = new HeatedSeats(audi, "Подогрев сидений"); Print(warmAudi); AutoBase remoteControlAudi = new RemoteStart(warmAudi, "Дистанционный запуск"); Print(remoteControlAudi); }
static void Main(string[] args) { Renault reno = new Renault("RENAULT", "Renault Logan Active", 499.0); Print(reno); AutoBase myreno = new MediaNAV(reno, "Navigation"); Print(myreno); AutoBase newmyReno = new SystemSecurity(new MediaNAV(reno, "Navigation"), "Security"); Print(newmyReno); Console.WriteLine(); Audi audi = new Audi("Audi ", "Audi A8 ", 18499.0); Print(audi); AutoBase myaudi = new AutoAppearance(audi, "Appearance "); Print(myaudi); AutoBase newmyaudi = new SystemSecurity(new AutoAppearance(audi, "Appearance "), "Security "); Print(newmyaudi); }