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 / guest
private
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
In a function declaration what does extern means?
How many static variables are created if you put one static member into a template class definition?
Why null pointer is used?
What can c++ be used for?
What is the difference between public, private, and protected access?
Distinguish between new and malloc and delete and free().
What is the best c++ compiler?
What are pointer-to-members? Explain.
What is the basic difference between C and C++?
Ask to write virtual base class code?
What is flush () in c++?
What are the advantages of using pointers in a program?
Why is c++ a mid-level programming language?
What are the advantages of early binding?
What do you understand by a pure virtual member function?