Lesson 17 of 24
Inheritance
10 min 35 XP
class Car : public Vehicle వల్ల Car కు Vehicle యొక్క public, protected members లభిస్తాయి. Derived constructor తన initializer list లో base constructor ను call చేస్తుంది. C++ multiple inheritance ను కూడా support చేస్తుంది.
Example: edit me and press Run
Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.