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
What is this weird colon-member (" : ") syntax in the constructor?
Show the declaration for a static member variable.
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
Explain unexpected() function?
Is rust better than c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
How to declare a function pointer?
What programming language should I learn first?
What is c++ best used for?
What is the size of a vector?
State two differences between C and C++.
Explain how overloading takes place in c++?
Define pure virtual function?
What does floor mean in c++?
What is a vector c++?