Example #1
0
        static void Main(string[] args)
        {
            Employee employee = new Employee // Instantiate Employee object and initialize first and last name.
            {
                firstName = "Sample",
                lastName  = "Student"
            };

            employee.SayName();  // Write the name to the console.
            Console.ReadLine();
        }