I would have thought lots of people would have wondered whether this is possible but I can\'t find any duplicate questions... do correct me.
I just want to know whether
Yes, that type of solution is possible, it's called polymorphism, you can do it without declaring an abstract class or an interface.