Assume DerivedClass is derived from BaseClass and we have a reference variable for each: subRef and baseRef, respectively. Assume baseRef has been instantiated but subRef has not. True or False: At this point in the program, we can do the following without a compiler error: subRef=(DerivedClass) baseRef;True or False?
Given statement will execute without any compilation error because pointer to derived class can hold address of object of base class if typecasting is done(and here typecasting to derived class is done).