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
By using c++ with an example describe linked list?
Explain mutable storage class specifier.
What is the difference between an enumeration and a set of pre-processor # defines?
What is a static member?
What is atoi in c++?
Why do we use templates?
If there are two catch statements, one for base and one for derived, which should come first?
What are the classes in c++?
What is the oldest programming language?
What are member functions used in c++?
When should we use multiple inheritance?
Explain virtual destructor?
What is public, protected, private in c++?
What is new in c++?
Define upcasting.