예제 #1
0
        public static fullTimeEmp inputFT()
        {
            fullTimeEmp fEmp;
            String      name;
            int         age;
            double      soNgayLam;

            Console.WriteLine("Nhap ho ten:");
            name = Console.ReadLine();
            Console.WriteLine("Nhap tuoi: ");
            age = Int32.Parse(Console.ReadLine());
            Console.WriteLine("Nhap so ngay lam: ");
            soNgayLam = double.Parse(Console.ReadLine());
            return(fEmp = new fullTimeEmp(name, age, soNgayLam));
        }
예제 #2
0
 public void addFullTime(fullTimeEmp ft)
 {
     ftEmp.Add(ft);
 }