Ahata
Ahata
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
thanks for the info
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
I am trying to make a game using monogame, so I learn as I go
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
That's amazing thank you so much.
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
Oh wow
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
also sorry for the code format
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
I'm trying this but I am still getting null :/
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
My problem is that when I create a Base object as a Child, the values passed are returned as null.
19 replies
CC#
Created by Ahata on 11/18/2024 in #help
Inheritance
Does this help?
19 replies
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 }
19 replies