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 the best c++ book?
what is importance of data sturture in a programming language?
22 Answers L&T, TCS, Wipro,
Is c++ a good beginners programming language?
Difference between strdup and strcpy?
Why are arrays usually processed with for loop?
why c++ is not called strictly d super set of c?
Describe protected access specifiers?
When is the destructor called?
What are stacks? Give an example where they are useful.
How a modifier is similar to mutator?
Write about the role of c++ in the tradeoff of safety vs. Usability?
Should the member functions which are made public in the base class be hidden?