Multiple Inheritance in C++ | C++ Tutorial | Mr. Kishore
Vložit
- čas přidán 25. 04. 2017
- C ++ Tutorial Videos | Mr. Kishore
** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
💡 Also Watch
C Language Tutorials: goo.gl/qDhJ2r
Core Java FAQ's: goo.gl/qGh5mA
Core Java Tutorials: goo.gl/NbaEge
Java Programming Tutorials by Mr.Hari krishna:
goo.gl/HThq6H
Advanced Java Programming Tutorials by Mr.Nataraj:
goo.gl/1U2Qgy
Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Websites
For Classroom Training: nareshit.in/cpp-training/
For Online Training: nareshit.com/c-online-training/
#JavaCollectionsFramework #Tutorials #Videos #corejava #Quiz #Clanguage
--------------------------
💡 About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.
--------------------------
💡 Please write back to us at
📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
--------------------------
💡 Check The Below Links
► For Course Reg: goo.gl/r6kJbB
► Subscribe to Our Channel: goo.gl/q9ozyG
► Circle us on G+: plus.google.com/+NareshIT
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3
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
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.
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 🙏
Sir u are really wonderful ... what a great concept u have .... it helps me a lot
Very well explained,sir.
Sir class session of inheritance very fantabulous explanation
Tq sir
Very very thank you sir 🙏🙏there is nothing teaches like you.
Thanks sir .. your leacture is very gooness for me
You are such a wonderful teacher sir.thank you
ur video is really very helpful 😇
Wonderful explanation
Thank you very much sir
thanks kishore sir ...
Great sir 👌👌
Excellent
God bless u
Tq u very much sir
thank you sir
Th❤️nku soo much sir
can we use protected class members by calling it in main using a object or is it used like we use private members?
thanku 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
U guys r great but I should keep going and more over quality of video and presentation should be improved....
Keep rocking NiT
sir why did u use getch() at last?
Love u ❤️😘❤️😘
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....
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.
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.
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
#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
Programme is not clarity
#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
Excellent
Thank you sir
Thank you sir