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
How the V-Table mechanism works?
Why do we use string in c++?
What is static class data?
How does com provide language transparency?
What is auto used for in c++?
What do you mean by function overriding & function overloading in c++?
Explain the concept of friend function in c++?
How would you use qsort() function to sort an array of structures?
How is new() different from malloc()?
Write a Program for find and replace a character in a string.
What is the output of printf("%d")?
58 Answers CTS, HCL, Infosys, TCS, Winit, Wipro,
What are 2 ways of exporting a function from a dll?