Avis
Avis
CC#
Created by Avis on 2/20/2023 in #help
How do I call the constructor of a parent class?
public class Child : Parent // make a child class
{
public Child(string mom, string dad)
: base(mom, dad) //oh wait this is the constrctor for Child?

{
...
}
}


public class Child : Parent // make a child class
{
public Child(string mom, string dad)
: base(mom, dad) //oh wait this is the constrctor for Child?

{
...
}
}


19 replies
CC#
Created by Avis on 2/20/2023 in #help
How do I call the constructor of a parent class?
so Parent Child Child
19 replies
CC#
Created by Avis on 2/20/2023 in #help
How do I call the constructor of a parent class?
quick question wouldn't this make a second child class inside the first?
19 replies
CC#
Created by Avis on 2/20/2023 in #help
How do I call the constructor of a parent class?
thank you!
19 replies
CC#
Created by Avis on 2/20/2023 in #help
How do I call the constructor of a parent class?
so base works as the parent class's constructor?
19 replies
CC#
Created by Avis on 2/4/2023 in #help
Object that's passed in isn't recognized as an object?
thank you!
8 replies
CC#
Created by Avis on 2/4/2023 in #help
Object that's passed in isn't recognized as an object?
oh wait mainMenu needs to be static
8 replies
CC#
Created by Avis on 2/4/2023 in #help
Object that's passed in isn't recognized as an object?
yes
8 replies