Can you find BUG in these code | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
17th Dec 2022, 7:40 AM
CODESTAR
CODESTAR - avatar
1 Antwort
+ 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 🇮🇳