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 / gayatri p
Private
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of using friend classes?
Differentiate between declaration and definition.
What is microsoft c++ redistributable 2013?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Explain the difference between overloading and overriding?
Explain rethrowing exceptions with an example?
How would you obtain segment and offset addresses from a far address of a memory location?
What is class invariant in c++?
what are the decision making statements in C++? Explain if statement with an example?
Define anonymous class.
Const char *p , char const *p What is the difference between the above two?
What are the four partitions in which c++ compiler divides the ram?
What is an inclusion guard?
What is a responder chain?
What is private inheritance?