Answers for "Calling C# Constructor"

C#
0

Calling C# Constructor

class Program
{
  static void Main()
  {
      Employee employee;
      employee = new Employee("Inigo", "Montoya");                            
      employee.Salary = "Too Little";
 
      System.Console.WriteLine(
          "{0} {1}: {2}",
          employee.FirstName,
          employee.LastName,
          employee.Salary);
  }
  // ...
}
Posted by: Guest on September-25-2021

C# Answers by Framework

Browse Popular Code Answers by Language