When Class A contains a constructor. And When we interite the class A in public mode so according to the property of inheritance constructor is also inherit.But you have told in the previous video constructor can't be inherited. How is this possible.
Listen carefully, Constructors cannot be inherited in C++. However, a derived class can call a base class constructor using an initializer list. This means while constructors themselves aren't inherited, the base class's constructor can be invoked to initialize base class parts of the derived class.
sir apne pass base class m agr koi argument nhi ho to fir kaise krenge or kya jo base class k constructor ki argument h vo same variable vaha le skte h kya derived class m
Hello sir I have a question, If we inherit class A in public mode and class B in private mode and A and B has same member function then object create of derived class and call the same member function ,so why ambiguity generated, please tell me.
Sir , me nepal se hu aapka video video dekh k C++ me pass ho gaya ..❤ Aap ka dil se bahut bahut shukriya, dhanyavaad 🙏
The way u explain sir is so easy and understandable
better teacher than harry
sir you are the best
Thanks😊
Best teacher for c and cpp
Thankkk youuuu🥲🥲🥲 itni daer sai ek code pai phasa hua tha thank youu 💫🥲🫂
Most welcome🙂
Thank you sir your teaching is touch my heart ❤️❤️ 😘😘😘
Sir,
thank you so much for explaining me in better way.
😍😍😍💖💖💖💖💖
Amazing explanation sir 👍
Your videos helps a lot in my exams... 😊🥰
excellent work sir
Please jaldi start kar dijiye abhi tak kuch padha nhi hai aapka ka intazaar kar raha hoo
Sir your way of explanation is so good 🙂🙂 please complete this playlist as soon as possible 🙏
Sir gzb ka padate h aap thank u
Lot's of respect 🙏🙂🙂🙂💓💓💓💓
Thanks Kavita!
Sir pls css sikhao pls aapke explanation bhot mast hote hai 🙏
Thank you sir ❤❤
Most welcome!
Great sir
Thanks😊
Sir class 12 board ka kab padhyenge sir bta dijiye please 🙏🙏
Sir waiting for next video
When Class A contains a constructor. And When we interite the class A in public mode so according to the property of inheritance constructor is also inherit.But you have told in the previous video constructor can't be inherited. How is this possible.
Listen carefully, Constructors cannot be inherited in C++. However, a derived class can call a base class constructor using an initializer list. This means while constructors themselves aren't inherited, the base class's constructor can be invoked to initialize base class parts of the derived class.
🔥🔥🔥
😊
sir apne pass base class m agr koi argument nhi ho to fir kaise krenge or kya jo base class k constructor ki argument h vo same variable vaha le skte h kya derived class m
Hello sir I have a question,
If we inherit class A in public mode and class B in private mode and A and B has same member function then object create of derived class and call the same member function ,so why ambiguity generated, please tell me.
Copy constructor ka b bta de
Base class ka object kyo nahi Bana sakte he ?
Kyoki inheritance me object hamesha derived class ka Banta hai..
kl paper hai 10 baje
Let's see
😊