You do
After all, that's what object orientation is about.Code:sensors[num]->PrintInformation(); // Implementation void Derived::PrintInformation() { cout << "Air temperature: " << GetAirTemp() << endl; cout << "Wind speed: " << GetWindSpeed() << endl; cout << "Wind direction: " << GetWindDir() << endl; cout << "Sea temperature: " << GetSunInt() << endl; cout << "Longitude " << GetLong() << endl; cout << "Latitude " << GetLat() << endl; }