#include #include #include "car.h" #include "motorcycle.h" using namespace std; int main() { const car c; const motorcycle m; const vehicle *const a[] { //an array of pointers &c, &m }; for (auto p: a) { //p is each pointer in the array of pointers p->honk(); p->funFact(); cout << "\n"; } return EXIT_SUCCESS; }