CC#•Created by Ahata on 11/18/2024 in #help Inheritance
class Base{
private string a;
public Base(string a,string b){
this.a = a;
this.b = b;
}
}
class Child : Base {
public Child(string a,string b){
this.a = a;
this.b = b;
}
}
Main{
Base x = new Child(y, z);
//here x does not get assigned y and z so x.y and x.z are null
}