Why cant you assign a base class object to a derived class


Problem

1. Why can't you assign a base class object to a derived class variable?

2. What is the problem with the (legal) assignment of a derived class object to a base class variable?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Why cant you assign a base class object to a derived class
Reference No:- TGS02745540

Expected delivery within 24 Hours