The print member function should also be const since it does not modify the object:
class PickUp : public Truck //use public inheritance
{
...
void print() const;
};
void Pickup::print()...
Type: Posts; User: hk_mp5kpdw
The print member function should also be const since it does not modify the object:
class PickUp : public Truck //use public inheritance
{
...
void print() const;
};
void Pickup::print()...