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


Please Help Members By Posting Answers For Below Questions

What is lambda in c++?

671


What are the four main data types?

660


Is c++ slower than c?

667


What are the 4 types of library?

702


How does code-bloating occur in c++?

836






What is one dimensional array in c++?

691


To which numbering system can the binary number 1101100100111100 be easily converted to?

700


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....

2053


If there are two catch statements, one for base and one for derived, which should come first?

662


What is the exit function in c++?

628


Difference between pointer to constant vs. Pointer constant

698


Which programming language's unsatisfactory performance led to the discovery of c++?

913


Difference between overloading vs. Overriding

692


What is late binding c++?

619


Differentiate between an inspector and a mutator ?

790