static void Main(string[] args)
        {
            Employee person = new Employee();

            person.age = 6;
            person.tellAge();



            person.firstName = "Sample";
            person.lastName  = "student";
            person.SayName();
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Employee employee = new Employee();

            employee.FirstName = new List <string>()
            {
                "Sample"
            };
            employee.LastName = new List <string>()
            {
                "Student"
            };
            employee.SayName();
            Console.ReadLine();
        }