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
Explain what are accessor methods?
What is the best free c++ compiler for windows?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
Can you please explain the difference between overloading and overriding?
How to declare an array of pointers to integer?
How does c++ structure differ from c++ class?
Mention the ways in which parameterized can be invoked.
Define pointers?
What is #include cmath?
Can I uninstall microsoft c++ redistributable?
What are maps in c++?
Difference between pointer to constant vs. Pointer constant
Why do we use iterators?
Differentiate between an array and a list?
Write about a nested class and mention its use?