We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
i am trying this........what is wrong here
class D :public A,B, C
{
int val;
public:
//Initially val is 1
D()
{
val=1;
}
//Implement this function
void update_val(int new_val)
{
while(val!=new_val)
{
A::func(val);
B::func(val);
C::func(val);
}
}
//For Checking Purpose
void check(int); //Do not delete this line.
};
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Accessing Inherited Functions
You are viewing a single comment's thread. Return to all comments →
i am trying this........what is wrong here class D :public A,B, C {
};