Category : aggregation

I have a base class Vehicle, a child class Scooter and a class which holds an aggregation relation to Vehicle, called Management. This is the code of management.h: class Scooter; class Management { public: .. //(some methods use the Scooter type) private: .. }; This is an example of a method in management.cpp: bool Management::compare_scooter(std::shared_ptr<Scooter> ..

Read more