+ 1
Can you find BUG in these code
1 Resposta
+ 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...