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 a try block?
what are the events occur in intr activated on interrupt vector table
What is polymorphism in c++? Explain with an example?
How is static data member similar to a global variable?
What is abstraction in c++ with example?
Can we use clrscr in c++?
Explain stack unwinding.
What are the classes in c++?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
What is c++ redistributable?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
How are the features of c++ different from c?
Who created c++?
Write a recursive program to calculate factorial in c++.
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes