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.