right said since base class object compatible with derived class object and can store the object of derived class.