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
How a modifier is similar to mutator?
Write a program using display() function which takes two arguments.
When do we run a shell in the unix system?
How do you sort a sort function in c++ to sort in descending order?
What is cout flush?
What is meant by the term name mangling in c++?
What is binary search in c++?
Can notepad ++ run c++?
Define the operators that can be used with a pointer.
What is the difference between object-oriented programming and procedural programming?
What is namespace & why it is used in c++?
What is format for defining a structure?
Where is atoi defined?
How are the features of c++ different from c?
Do the parentheses after the type name make a difference with new?