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
what about data members of 1st class( student class) the members are by default private then how can we access them outside class or do we need to declare them protected??? or if we declare the data members of student class(1 base class) as protected then would it change visibility of intermediate class or no? please answer....
#include using namespace std; class stu { int id; char *s;
public: void getstu() { coutid>>s; }
}; class mark : public stu { protected: int m1,m2,m3; public: void getmark() { coutm1>>m2>>m3; } }; class result:public mark { int total; float avg; public: void getres() { total=m1+m2+m3; avg=total/3; cout
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
Thankyou , whole series of C++ studied from ur channel , once again thankyou
S2u
Watched all of the videos till 53 for cpp. Great experience till now. Thanku
No one can explain like u sir. Very nice ... Continue sir
Nice explanation,We want to more & more Programs with C & C++Using the irregular students in examinations, Thank you sir! 😊
sir wt is advantage of multilevel inheritance over multiple both does same job
neat explanation sir.thanks a lot
Does ambiguity occur in multilevel inheritance .?
why in base class he has declared the data members as private?????should'nt it be protected......????!!!
Unka use nhi tha that's why...
yes they should be declared as protected i guess
NICE CLASS,NICE EXPLANATION
Very Nice Explanation and easy to understand . Thank You So Much...
what about data members of 1st class( student class) the members are by default private then how can we access them outside class or do we need to declare them protected???
or if we declare the data members of student class(1 base class) as protected then would it change visibility of intermediate class or no?
please answer....
same in my case;
Best teacher ❤️
very good example sir
sir please organise all your video in topic wise manner thanks
thank you kishore sir for thia wonderful video
Class ku vaeliya function define panalama
very good explanation ...excellent
God bless you!!
Thanks sir🥰
Hello kishor my father name is also kishor
What is co-incedance
#include
using namespace std;
class stu
{
int id;
char *s;
public:
void getstu()
{
coutid>>s;
}
};
class mark : public stu
{
protected:
int m1,m2,m3;
public:
void getmark()
{
coutm1>>m2>>m3;
}
};
class result:public mark
{
int total;
float avg;
public:
void getres()
{
total=m1+m2+m3;
avg=total/3;
cout