For casts to work well, you need inheritance which is, arguably, more complex. And you can still combine it with interfaces, ofc for the ultimate mind****.
If you use inheritance, you can cast to base class.
For casts to work well, you need inheritance which is, arguably, more complex. And you can still combine it with interfaces, ofc for the ultimate mind****.
If you use inheritance, you can cast to base class.