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


Please Help Members By Posting Answers For Below Questions

What is the use of setprecision in c++?

546


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

1949


How do I write a c++ program?

598


What is the best book for c++ beginners?

579


Why was c++ made?

652






What is an overflow error?

623


Can you overload the operator+ for short integers?

600


What is function declaration in c++ with example?

550


What is enum class in c++?

710


Explain the uses of static class data?

599


What does new in c++ do?

568


What is lazy initialization in c++?

656


What do you mean by stack unwinding in c++?

732


What language is a dll written in?

547


What are multiple inheritances (virtual inheritance)?

585