In C++, inheritance is a feature that allows a class to inherit properties and behavior from another class. This means that a new class can be created based on an existing class, inheriting its attributes and methods. For example, you could have a base class called "Vehicle" with properties like "speed" and "color," and then create a derived class called "Car" that inherits from "Vehicle" and adds its own properties like "brand" and "model." This allows for code reuse and promotes a hierarchical structure in your program.
00:02 Inheritance allows a class to inherit properties and behavior from another class. 00:59 Inheritance allows transferring properties and behaviors from the base class to the derived class, saving time and lines of code. 01:44 Inheritance allows transferring property from one class to another 02:37 Creating spring type member with protected surname for inheritance. 03:50 Inheritance mechanism allows for inheriting surnames 04:47 Member functions need to be declared public to access them through objects 05:48 Understanding inheritance in C++ 06:36 In C++, inheritance transfers properties from one class to another.
Sir how to get job in it sector BCS I hv 8 yrs gap after btech completion bcz i prepared for govt job now I intrested in it sector is it possible to get job in it sector
2rs pen giving lot of gyai 😊😊
3 bro❤😂
Gyan bande ke paas honi chahiye bro 😂
Tb to pencil bhi chalega
But vro last 4 years se yehi pen use ho Raha h😂
3rs bhai
Ur videos r very helpful for my last moment preparation
Tq bhai❤
😊😅😅😅😊😊😅😅😅😊😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😊😅😊😅😅😅😅😅😅😅
Your teaching is like a friend helping you in study on the last night of exam
Ok 😊
😊 exam tomorrow
@@M.HamzaHassaan BEST OF LUCK
😊😢 exam tomorrow c++ in gyu 2nd sem
Gtu
You are teaching better than my college 😁💯
In C++, inheritance is a feature that allows a class to inherit properties and behavior from another class. This means that a new class can be created based on an existing class, inheriting its attributes and methods. For example, you could have a base class called "Vehicle" with properties like "speed" and "color," and then create a derived class called "Car" that inherits from "Vehicle" and adds its own properties like "brand" and "model." This allows for code reuse and promotes a hierarchical structure in your program.
chatgpt se copy paste kiya hai 🤣🤣
@@BlazeOp-oe6vr Bro isay Kya ho gya phr achi baat hai AP bhi use kr lo chatgpt
Your videos are very helpfull ❤ thanks 👍 you brother
"Brevity is the soul of wit" Well Explained 🖤❤🖤
Thank you so much sir 🙏
NIce explanation with great example
Good method understand 👍😊😊
Good teacher ❤
no word ti say thank you sir 😇😇😇
Sir ap bht acha prhaty hyn MashaALLAH but sir thoda def wgera ziada explain kia kryn
Bhaiya mujhe c++ basic Se suru krni h Mai aapki kon kon si video dekhu plzz reply
Thankyou sir 🙏❤️
love you sir nice explanation
:)
bhai maan gaye apko la javab
Thank you sir
Sir apka name Ravi kushwaha h kya
Bhaiya aap Bihar se ho ka
Thank you very much sir ❤
How are you defining data members value without using constructor 🤔
nice
Sir kotlin programming ve sikhwo
I waiting for
my compiler Turbo C is not compiling and throws errors.
Thanks for help ❤
❤
good good good good.........
Sir ye base class kya hai or class derived btaiye sir
sir please Boolean function me bhi video please bnaye
What is ":"sign called and is this is similar to scope resulation operator
: it's called colon and :: it's scope resolution operator.
Both are different in use. 🙂
Sir please oops in c++ ke or bhi videos upload kare🙏🏼
👍
Example thoda or easy ho skta tha jaise aapne pichle baar ke videos mai diya tha
why you use protected template in father class plz tell....???
00:02 Inheritance allows a class to inherit properties and behavior from another class.
00:59 Inheritance allows transferring properties and behaviors from the base class to the derived class, saving time and lines of code.
01:44 Inheritance allows transferring property from one class to another
02:37 Creating spring type member with protected surname for inheritance.
03:50 Inheritance mechanism allows for inheriting surnames
04:47 Member functions need to be declared public to access them through objects
05:48 Understanding inheritance in C++
06:36 In C++, inheritance transfers properties from one class to another.
Quality increase kar do agar aap to maja hi aa jayega sir
I am in class 12
Can I watch your videos for class12 syllabus
Please answer
exams are in 1 month
Upload pdf notes for all videos because of language issue we request to upload pdf for all video...🙏
Ok 😊
🎉😢😮😮😅😊❤😂🎉😢😢😮😅😊
Hello, is it possible to activate translation?
😢😢😢😢😢😢 To English language please
Please Ms office py bhi detail Sy vedio bnaye
Study hacks with MAHAK in Hindi
Sir how to get job in it sector BCS I hv 8 yrs gap after btech completion bcz i prepared for govt job now I intrested in it sector is it possible to get job in it sector
Bataiye na sir plz apka nam mujhe apki awaz se lga ki ap mere st Anne's intermediate ke teacher k computer practical ke
This would have been a great video if you taught it in english.
Thanks
Why r u English man🤔
Sir plz ap opps in C++ ky sary lecture akhty share kr dain
Sir ink kaha gyi
Sir ap kha se hai
Jamshedpur 🙂
@@LearnCodingOfficialMadhya Pradesh
Kushwaha❤❤
#include
using namespace std;
int* add_ten(int* data) {
for (int i = 0; i < 5; ++i) {
*(data + i) = *(data + i) + 10;
}
return data;
}
int main() {
int data[5] = {1, 2, 3, 4, 5};
int *result;
result = add_ten(data);
for (int i = 0; i < 5; ++i) {
cout
Sir aap Rajput ho kya?
Yes 🙂
Sir why this code is not working on Turbo C++
Iske sabhi program turbo mein run nhi hote hai
Who is this akhilesh and ankush
See description
Oh Akhilesh and ankush are your son's 😅
22 feb
mayirandi mayirandi eng la podu da
hamare wo 5 me milta hai 🥲
P