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

Answers were Sorted based on User's Feedback



class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; ..

Answer / guest

private

Is This Answer Correct ?    6 Yes 1 No

class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; ..

Answer / gayatri p

Private

Is This Answer Correct ?    0 Yes 1 No

class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; ..

Answer / madhusudan singh

d) public

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C++ General Interview Questions

Implement strncpy

3 Answers  


How do you link a C++ program to C functions?

4 Answers  


What does obj stand for?

0 Answers  


Which of the following is evaluated first: a) && b) || c) !

0 Answers  


Can we define function inside main in c++?

0 Answers  






Explain linked list using c++ with an example?

0 Answers  


What is the main use of c++?

0 Answers  


What is else syntax in c++?

0 Answers  


By using c++ with an example describe linked list?

0 Answers  


what is the emaning of '#include" "'?

5 Answers  


Explain the static storage classes in c++.

0 Answers  


What is a built-in function?

1 Answers  


Categories