You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -405,7 +405,59 @@ public class HPComputerDeveloper : IComputerDeveloper
405
405
/// <returns>Компьютер.</returns>
406
406
publicComputerGetComputer() =>_computer;
407
407
}
408
+
```
408
409
:four: Теперь создадим класс Director, который будет иметь поле IComputerDeveloper, то есть, он будет принимать в конструкторе одного из разработчиков компьютеров и в зависимости от разработчика создавать определенный компьютер.
410
+
```C#
411
+
/// <summary>
412
+
/// Директор.
413
+
/// </summary>
414
+
publicclassDirector
415
+
{
416
+
/// <summary>
417
+
/// Разработчик компьютеров.
418
+
/// </summary>
419
+
privateIComputerDeveloper_computerDeveloper;
420
+
421
+
/// <summary>
422
+
/// Создание директора с помощью указанных параметров.
0 commit comments