✅ abstract class - default value
Hello, I have a simple code:
Is it possible to have an abstract class hold default parameter but when I override that then when I call the function it will use the overridden parameter in the child class?
5 Replies
you could use a constructor argument in the base class
And it's not possible without constructor?
you could have a protected virtual method instead
(or virtual property, I guess)
Okay, virtual property is what Im looking for I think. Thanks
Consider closing this question using /close