Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
sir in this video instead declaring protected we can call the member functions of student and marks in the memberfunction of derived class right.even that can give the solution without declaring private members as protected like in below code. void get() { cout
Sir , it's really nice to hear c++ concepts through your comfort and pleasant teaching. I appreciate the example programs you have used.I have prepared many lecture notes from your videos. Thank you so much sir 🙏
I have gained so much from listening to you on so many topics - you go deeply and the student get the concept - great teacher - respects due to you and thank you for sharing your knowledge.If all your codes were now in a format that is easy for a student to just copy and run and test the output I don't think any other lecture series could have competed with yours.This is my humble suggestion
Best teacher for getting programming concepts. So easy to understand I wish I had a teacher like him in my college but thanks to youtube that he is available virtually anytime so anytime that I am facing problem to lern a concept I can easily get access to kishor sir.
}; class mark { protected: int m1,m2,m3; public: void getmark() { coutm1>>m2>>m3; } }; class result:public stu,public mark { public: void getres() { int total=m1+m2+m3; float avg=total/3; cout
no bro not required because m1,m2,m3 are made available in the result class by inheritance. Din't you observe the line CLASS RESULT : PUBLIC STU , PUBLIC MARKS
if we want to access the marks class in the result class then we have to declare getmarks() and putmarks in the derived class , as marks class is private???????
Awesome sir, but I have a doubt that you didn't use the id, name members of base class to derived class.just you inherit the properties of only one base class -marks... Can you explain it sir?
Sir i m having one ques. In programming where i have to write c++ program to implement concepts of single, multiple,multilevel and hybrid inheritance in one single program. I m not getting how to write this program code i m little bit confuse ; sir jab mein prog. Banne jati hu toh koi na koi inheritance implement nhi kr paati hu program mein jaise single inheritance,multiple and hybrid kiya implement toh multilevel kese kru implement ye samaj nhi aa raha. Mene you tube pr 2 aur tutorial me ye same ques. Pucha but unhone abhi tak ek reply nhi diya ab aap hi aakhri ummed ho sir plzz help me.... Thanks🙂
in this lecture ,In first base class int id ,char name are in private we did not have access to call them but you called them with derived class object how sir ........
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
sir in this video instead declaring protected we can call the member functions of student and marks in the memberfunction of derived class right.even that can give the solution without declaring private members as protected like in below code.
void get()
{
cout
#include
using namespace std;
class A{
int a;
public:
void get()
{
cout
You are such a wonderful teacher sir.thank you
Very very thank you sir 🙏🙏there is nothing teaches like you.
Sir , it's really nice to hear c++ concepts through your comfort and pleasant teaching. I appreciate the example programs you have used.I have prepared many lecture notes from your videos. Thank you so much sir 🙏
Tq u very much sir
I have gained so much from listening to you on so many topics - you go deeply and the student get the concept - great teacher - respects due to you and thank you for sharing your knowledge.If all your codes were now in a format that is easy for a student to just copy and run and test the output I don't think any other lecture series could have competed with yours.This is my humble suggestion
#include
using namespace std;
class stu
{
int id;
char name [30];
public:
void getstu()
{
cout
class stu()
{
protected:
int id;
.......
}; // kishore sir have missed writting protected inside class stu()
You have forget to write public marks while deriving class
Thanks sir .. your leacture is very gooness for me
thanku sir
U guys r great but I should keep going and more over quality of video and presentation should be improved....
Keep rocking NiT
Best teacher for getting programming concepts. So easy to understand I wish I had a teacher like him in my college but thanks to youtube that he is available virtually anytime so anytime that I am facing problem to lern a concept I can easily get access to kishor sir.
#include
using namespace std;
class stu
{
int id;
string s;
public:
void getstu()
{
coutid>>s;
}
};
class mark
{
protected:
int m1,m2,m3;
public:
void getmark()
{
coutm1>>m2>>m3;
}
};
class result:public stu,public mark
{
public:
void getres()
{
int total=m1+m2+m3;
float avg=total/3;
cout
ur video is really very helpful 😇
Sir u are really wonderful ... what a great concept u have .... it helps me a lot
sir why did u use getch() at last?
Th❤️nku soo much sir
Sir in this example ,as in marks class the variable m1,m2,M3 are protected ,so in derived result class they should be defined in protected area na???
no bro not required because m1,m2,m3 are made available in the result class by inheritance.
Din't you observe the line CLASS RESULT : PUBLIC STU , PUBLIC MARKS
Sir class session of inheritance very fantabulous explanation
Tq sir
Great sir 👌👌
Very well explained,sir.
Thank you very much sir
Wonderful explanation
Love u ❤️😘❤️😘
thanks kishore sir ...
thank you sir
Excellent
God bless u
Shouldn't we use protected keyword in int id and float name ,like we did in int m1,m2,m3 ????
Yes u do but when u use it in the derived class
yes why not! but they are not further used in any derived class except its own. thats why.
can we use protected class members by calling it in main using a object or is it used like we use private members?
if we want to access the marks class in the result class then we have to declare getmarks() and putmarks in the derived class , as marks class is private???????
Marks class is not private.
I think you have to watch it again.
Awesome sir, but I have a doubt that you didn't use the id, name members of base class to derived class.just you inherit the properties of only one base class -marks... Can you explain it sir?
It's also use the properties of Stu class to display the students info like name and I'd....
Sir i m having one ques. In programming where i have to write c++ program to implement concepts of single, multiple,multilevel and hybrid inheritance in one single program.
I m not getting how to write this program code i m little bit confuse ; sir jab mein prog. Banne jati hu toh koi na koi inheritance implement nhi kr paati hu program mein jaise single inheritance,multiple and hybrid kiya implement toh multilevel kese kru implement ye samaj nhi aa raha. Mene you tube pr 2 aur tutorial me ye same ques. Pucha but unhone abhi tak ek reply nhi diya ab aap hi aakhri ummed ho sir plzz help me....
Thanks🙂
Didi ,Go on Hacker Rank Or any coding site and start coding there .There you will get an idea how and where to use them.
in this lecture ,In first base class int id ,char name are in private we did not have access to call them but you called them with derived class object how sir ........
Sir did not called.he calls int m1,m2,m3 of marks class only in derived class.sir called in main
Hi bro don't confuse the derived class sir token public stu than u can access the private class of base class look clearly
He has selected it in public mode ,means u see he wrote -class result:public stu
@@zakimohas if it is so ,thn y he made other base class keyword to protected ?
Sir i cant understand
Programme is not clarity
Excellent
Thank you sir
Thank you sir