示例#1
0
 public void AcceptInfo()
 {
     Employee clientEntry = new Employee();
     Console.WriteLine("Enter client name");
     clientName = clientEntry.AcceptName(Console.ReadLine());
     Console.WriteLine("Enter client address:");
     clientAddress = Console.ReadLine();
     Console.WriteLine("Enter client contact number:");
     clientNumber = countryCode + GetNumber(Console.ReadLine());
     Console.WriteLine("Enter client company:");
     clientCompany = clientEntry.AcceptName(Console.ReadLine());
 }
示例#2
0
        public void AcceptInfo()
        {
            Employee companyNameObj = new Employee();

            Console.WriteLine("Enter company name");
            companyName = companyNameObj.AcceptName(Console.ReadLine());
            Console.WriteLine("Enter company address:");
            companyAddress = Console.ReadLine();
            Console.WriteLine("Enter number of employee:");
            numberOfEmployee = GetNumber(Console.ReadLine());
            Console.WriteLine("Enter domain of the company:");
            domainOfCompany = companyNameObj.AcceptName(Console.ReadLine());
        }