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