example of constructors in c#

Example 1: c# constructor

public class Person
{
   private string last;
   private string first;

   public Person(string lastName, string firstName)
   {
      last = lastName;
      first = firstName;
   }

   // Remaining implementation of Person class.
}

Example 2: Constructor in C#

class Car
    {
        public Car(string Name, string Model, int Seat_Number, int Door_Number, double Price)
        {
            name = Name;
            model = Model;
            seat_Number = Seat_Number;
            door_Number = Door_Number;
            price = Price;
        }
 }

Example 3: example of constructor in c#

class Program
{
  static void Main(string[] args)
  {
    Car Ford = new Car("Mustang", "Red", 1969);
    Car Opel = new Car("Astra", "White", 2005);

    Console.WriteLine(Ford.model);
    Console.WriteLine(Opel.model);
  }
}