class basex
{
int x;
public:
void setx(int y) {x=y;}
};
class derived : basex {};
What is the access level for the member function "setx" in
the class "derived" above?
a) private
b) local
c) global
d) public
e) protected
Answer Posted / madhusudan singh
d) public
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Write about all the implicit member functions of a class?
Is c++ low level?
What is the use of 'this' pointer?
Why pointer is used in c++?
What is a rooted hierarchy?
What does std mean in c++?
What is an operator function? Describe the function of an operator function?
Can a constructor return a value?
Can union be self referenced?
What is the use of endl in c++?
What is a modifier in c++?
Which is better turbo c++ or dev c++?
What are c++ manipulators?
What is the purpose of ios::basefield in the following statement?
What is vector string in c++?