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
What is cout flush?
What is size of Empty Class?
What is the use of 'this' pointer?
How much do c++ programmers make?
Give an example of run-time polymorphism/virtual functions.
What is class invariant in c++?
Explain the scope resolution operator?
Is java based off c++?
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
How can you differentiate between inheritance and implementation in c++?
What does std mean in c++?
What is a character in c++?