C
C#13mo ago
Ethan Barron

✅ Need help understanding inheritance with constructors

I know about constructors partially (I'm used to Unity's MonoBehaviour so constructors are mostly superseeded by using things like Awake) but I'm not fully there. Currently I need to inherit from a class and run its constructor alongside mine. How exactly does this work?
2 Replies
Ethan Barron
Ethan BarronOP13mo ago
Mostly here. I cant get any guaranteed answers on if base is called automatically because everywhere I looked people are saying yes and no
No description
Ethan Barron
Ethan BarronOP13mo ago
I'm wanting to run base at the beginning then my code later Ohhh wait I didn't fully understand the : base thing but I just saw something I suppose I should've made sense of that. That's my bad
Want results from more Discord servers?
Add your server