How to hold Derived class list objects in Base class list object
class Base
{
}
class Child : Base
{
}
Base obj = new Child();
Will the same work for list.
List<Base> obj = new List<Child>();
This is giving me error, what is the best way to achive this.