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.