17th Dec 2022, 7:40 AM
CODESTAR
CODESTAR - avatar
1 Respuesta
+ 4
put_Vehicle_datails(); is declared as protected member in class vehicle. So you can access it in Vehicle class and imported Car class. But not anywhere outside. So from main() , you can't access. a2. put_Vehicle_datails(); is error. try to access it from Car class...
17th Dec 2022, 9:15 AM
Jayakrishna 🇮🇳