Beispiel #1
0
 public BaseNotebook(ComputerTechnics computerTechnics)     //связь данного класса с классом ComputerTechnics отношением агрегации. Дает возможность добавлять
                                                            // в конструктор новую функциональность для текущего объекта
 {
     this.computerTechnics = computerTechnics;
     GetName = "Базовый ноутбук";
     GetCost = 30000;
 }
 public StandartNotebook(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Стандартный ноутбук";
     GetCost = 60000;
 }
Beispiel #3
0
 public PremiumNotebook(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Премиальный ноутбук";
     GetCost = 170000;
 }
 public PremiumMouse(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Премиальная мышь";
     GetCost = 1200;
 }
Beispiel #5
0
 public BaseMouse(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Базовая мышь";
     GetCost = 300;
 }
 public StandartMouse(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Стандартная мышь";
     GetCost = 600;
 }
 public BaseKeyboard(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Базовая клавиатура";
     GetCost = 500;
 }
Beispiel #8
0
 public StandartKeyboard(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Стандартная клавиатура";
     GetCost = 1500;
 }
Beispiel #9
0
 public PremiumKeyboard(ComputerTechnics computerTechnics)
 {
     this.computerTechnics = computerTechnics;
     GetName = "Премиальная клавиатура";
     GetCost = 3000;
 }