Multilevel Inheritance Deep Dive with Code Example in C++ | C++ Tutorials for Beginners #40

preview_player
Показать описание

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

haary sr literally inheritance is so easy as u explain so clear

tinkalkumar
Автор

I am done with 40 videos of this playlist and i feel proud 🎉🎉😎

Just put some comments if not like to show how many are here in 2023 after 3 years of harry bhai's hardwork

ChauhanAshish
Автор

harry bhaii entertained lot us with excellent teaching. his sense of humor is pn next level..😄😄

deep.thinking.
Автор

Best course ever..
I'm a pure begginer and
I'm learning from first video of your course. Literally best course ever. 🤘

raghunandanlodha
Автор

Inheritance is inherited in my mind without any difficulty. 🙏

Ravi_
Автор

Thank you Harry Bhai, 2 sala hogey Inheritance sikh ke clg me tab samaj nahi ae to us topic ko ignor karta tha . Aaj pata chala code with harry me sikhe kithne easy topic the o.

onkargaikwad
Автор

2:27 ho sakta Hain ki apke bhi kuch d ho was epic 😂🤣🤣🤣

uttamkarmakarece
Автор

harry sir, unbelievable explaination of multi-level inheritance!! Thank you :)

anshulpatil
Автор

2:50 why Harry bhai is smiling while explaining the concept. Kuch toh jhol
Maal hai.

sunilkumar-ftnk
Автор

The course is Awesome and easily understandable. Thank you Harry bhai for such best course I have seen on youtube

DipsOfficial
Автор

But bhai u are legend ❤️🙏🏻.
Sachme Inheritance me mjaa aa rha ha bhau.
Love u alot.

imabhishektomar_
Автор

This is my favorite video on entire youtube😉😉
love you and your videos harry bhaiii❤

someshkharat
Автор

Hey harry, just finished writing my code for the above classes as your instructed us. The only catch was that I had the user to enter all the details and then calculate the percentage that finally displays the name, roll number and the calculated percentage in double. By the way, I have attached my code below for anyone's reference. Thanks once again.

CODE:
#include <iostream>
using namespace std;

// class student: storing the name and roll number of the students (grandfather class)
class student{
protected:
string name;
int roll_number;
public:
void set_data(string n, int r){
name = n;
roll_number =r;
}
void get_data(void){
cout<<"\n";
cout<<"Name of the Student: "<<name<<endl;
cout<<"Roll Number of the Student: "<<roll_number<<endl;
}
};

// class exam: storing the marks of the students (father class)
class exam: public student{
protected:
double english, cs, maths, chemistry, physics;
public:
void set_marks(double a, double b, double c, double d, double e){
english =a;
cs =b;
maths =c;
chemistry=d;
physics =e;
}

void get_marks(void){
cout<<"Marks in English: "<<english<<endl;
cout<<"Marks in Computer Science: "<<cs<<endl;
cout<<"Marks in Maths: "<<maths<<endl;
cout<<"Marks in Chemistry: "<<chemistry<<endl;
cout<<"Marks in Physics: "<<physics<<endl;
}
};

// class result: calculates percentage and print that accordingly (child class)
class result : public exam{
double percentage;
public:
void calc_percentage(void){
get_data();
percentage =
cout<<"The Result of the Student: "<<percentage<<endl;
}
};

int main () {
result anubhav;
string n;
int roll;
cout<<"Enter the Name of the Student: ";
cin>>n;
cout<<"Enter the Roll Number of the Student: ";
cin>>roll;
anubhav.set_data(n, roll);
double a, b, c, d, e;
cout<<"Enter marks in English: ";
cin>>a;
cout<<"Enter marks in Computer Science: ";
cin>>b;
cout<<"Enter marks in Maths: ";
cin>>c;
cout<<"Enter marks in Chemistry: ";
cin>>d;
cout<<"Enter marks in Physics: ";
cin>>e;
anubhav.set_marks(a, b, c, d, e);
anubhav.calc_percentage();
return 0;
}

abrarahmad
Автор

Today I completed 40 videos of this playlist....i learnt python at first ....then Html, css, js and then react, then C ...then learning C++ now great coding journey ahead is left i will complete it coding😀😀

adityarajvermaa
Автор

Bahut bahut dhanyawaad sir ji,
You really great person sir.

ajoker
Автор

Amazing leacture carry bhai .... much clear

Saurabhsinghrathore
Автор

harry bhai you are very nice teacher . I listened that coding is very tough and complex . But till now I feel that it is easy and going smoothly . it is my first year in iit bhu and I hope that you will support me for four years and help me in getting good placement

allrounderabc
Автор

The way Harry bro says Battmeez programmer is so is doing a lot of hardwork to provide us the best quality of education YOU SO MUCH

adarshdubey
Автор

Harry sir i really love the way your teach to us. I have been following since the last 3 months in your python and web development courses, and i am really enjoying them. i really love your coding way and skills.
I want to ask something from you, could you possibly make your collections on java too, from beginner to advance. I meant this just because its the most suitable language that every MNC's ask in their coding rounds, along with C++. I like java apart from C++. I got really fond off of your web development courses, want to learn java from you only.
I understand how manage your daily schedule for the video lectures and your other work but java is too important.
just because python doesn't makes us to feel those complexities which has led the code to go freely along with your logic foundations,
and yes your python sessions are too good that i had even decided to make it up as my first language to work on project for 4th year.
Please sir. i even requested for the contents of data structures but it's feel like you haven't read my comment yet.
Please take my request only if you think that might help us in most certain cases, and please make them if you possibly manage to get time for them.

ShivamSingh-kngz
Автор

Outstanding Harry Bhaiya aap to dimag m thus thus k concept detey ho thankyou Harry Bhaiya TanX alots🙏❤🙏💖🙏

rishavkumar