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
What is the latest c++ version?
What does override mean in c++?
How can I learn c++ easily?
Describe the process of creation and destruction of a derived class object?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Do you know the problem with overriding functions?
Is empty stack c++?
Why we use #include conio h in c++?
What is stoi in c++?
What is the history of c++?
What is the difference between structure and class?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is a virtual destructor? Explain the use of it?
What does int * mean in c++?
What are move semantics?