I have seen many examples on the concepts of inheritance, abstraction and polymorphism where an object of a base class is being initialized by a child class like below:
BaseClass obj1 = new ChildClass();
Most of the examples only used unreal and simple examples, but I always wanted to know the real life examples on what scenarios these can be used.