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
Can we define function inside main in c++?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What are friend classes?
Differentiate between C and C++.
What is a type library?
What do you mean by translation unit?
Why c++ is not a pure oop language?
What jobs can you get with a c++ certification?
Why the usage of pointers in C++ is not recommended ?
Is c++ vector dynamic?
How do I exit turbo c++?
Does c++ cost money?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
What is the sequence of destruction of local objects?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.