Assignment Compatibility Rules-C++Programming Design(TAN Haoqiang Full Version)
Assignment Compatibility Rules: Can base class objects and derived class objects be assigned to each other? It is possible to assign the value of a derived class object to a base class object. However, the reverse is not allowed. For example: Base b; Derive d; b = d;
This only assigns the members inherited from the base class.
8.66MB
文件大小:
评论区