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
Does c++ have arraylist?
Explain how a pointer to function can be declared in C++?
Write a program in C++ for Fibonacci series
What is the difference between a reference and a pointer?
How to allocate memory dynamically for a reference?
What is the size of a vector?
What is the error in the code below and how should it be corrected?
What is null c++?
How would you obtain segment and offset addresses from a far address of a memory location?
What are the advantages of pointers?
Describe public access specifiers?
What do you mean by inheritance in c++?
What is c++ and its uses?
Explain the difference between overloading and overriding?
Is it possible to use a new for the reallocation of pointers ?