示例#1
0
        static void Main(string[] args)
        {
            Managers myManaObj = new Managers();

            myManaObj.nameManager = "Ahmed";
            Department myDep = new Department();

            myDep.departEmpNumber = 12;
            myDep.departName      = "Managers";
            myDep.myManag         = myManaObj;

            Console.WriteLine($"{myDep.departEmpNumber}\n{myDep.departName}");
            Console.WriteLine($"{myDep.departRoomsNumb}\n { myDep.myManag.nameManager}");
            Console.ReadKey();
        }
示例#2
0
 public Department(int number, Managers myMana)
 {
     departRoomsNumb = number;
     myManag         = myMana;
 }
示例#3
0
 public Department()
 {
     //departRoomsNumb = 5;
     myManag = new Managers();
 }