using System.Collections;
public required string firstname {get; init;}
public string lastname {get; set;}
public required int age{get; init;}
class VipCustomer(string carBrand, bool is_active, int prime):Customer{
public string carBrand {get; init;} = carBrand;
protected bool is_active = is_active;
protected int prime = prime;
public VipCustomer(string carBrand, bool is_active, int prime, char gender):this(carBrand, is_active, prime){
public string name{get; init;}
public int year{get; init;}
public string brand{get; init;}
public Car(string name, string brand, int year){
public void getCarInfo(){
Console.WriteLine($"Your car is a {this.name} of {this.brand} and release at {this.year}");
public string name{get; init;}
public int year{get; init;}
public string brand{get; init;}
public Car2(string name, string brand, int year){
public void getCarInfo(){
Console.WriteLine($"Your car is a {this.name} of {this.brand} and release at {this.year}");
public static void Main()
int[] numb = {1,3,4,5,7};
var ano = new {amount=125, message="this is a anonyme type", issue=true, price=12};
var ano2 = ano with {amount = 85, price=43, message="this is an anonyme type copied from an another type too"};
var c1 = new Customer(){firstname="Dubois", age=34, lastname="Alexis"};
var c2 = new VipCustomer("Toyota", true, 100){firstname="Delaroche", age=48, lastname="Jhonny"};
Console.WriteLine(c2.carBrand);
var camry = new Car2("Camry", "Toyota", 2020);
Car2 almera = new("Camry", "Toyota", 2020);
var car1 = new Car("Cullinague","Rolce Royce", 2024);
var c3 = car1 with {brand="Toyota"};
Console.WriteLine(camry==almera);
Console.WriteLine(almera.ToString());
Console.WriteLine("Sun Jin Wo");
ArrayList arr = new ArrayList();