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
No one can explain like u sir. Very nice ... Continue sir
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
Nice explanation,We want to more & more Programs with C & C++Using the irregular students in examinations, Thank you sir! 😊
Very Nice Explanation and easy to understand . Thank You So Much...
Best teacher ❤️
neat explanation sir.thanks a lot
NICE CLASS,NICE EXPLANATION
thank you kishore sir for thia wonderful video
very good explanation ...excellent
God bless you!!
very good example sir
sir wt is advantage of multilevel inheritance over multiple both does same job
Thanks sir🥰
sir please organise all your video in topic wise manner thanks
Class ku vaeliya function define panalama
Does ambiguity occur in multilevel inheritance .?
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;
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
#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
Hello kishor my father name is also kishor
What is co-incedance