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
Do vectors start at 0?
What is a pure virtual function? Why is it represented as = 0...how is the internal implementation for the same
What is #include iostream?
Can a constructor be private?
How many different levels of pointers are there?
What gives the current position of the put pointer?
What is input operator in c++?
What is the difference between set and map in c++?
What is a flag in c++?
What are vtable and vptr?
How java is different from c and c++?
Do you need a main function in c++?