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


Please Help Members By Posting Answers For Below Questions

Does c++ have arraylist?

542


Explain how a pointer to function can be declared in C++?

584


Write a program in C++ for Fibonacci series

664


What is the difference between a reference and a pointer?

601


How to allocate memory dynamically for a reference?

544






What is the size of a vector?

579


What is the error in the code below and how should it be corrected?

309


What is null c++?

590


How would you obtain segment and offset addresses from a far address of a memory location?

622


What are the advantages of pointers?

600


Describe public access specifiers?

587


What do you mean by inheritance in c++?

608


What is c++ and its uses?

624


Explain the difference between overloading and overriding?

616


Is it possible to use a new for the reallocation of pointers ?

601