Override Function and add variables?
is it possible to have a function in the base class:
And than Override it in a derived class and add a variable:
?
5 Replies
I tried doing it myself on visual studio Community but I get an error:
no suitable method found to override
.No, the signature of an override has to be the exact same as the method it's overriding.
You cannot add parameters.
Alright, Thanks,
Is there any way to workaround this? or should I just make a new function
You should probably just make a new function
Cool, Thanks.