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
When should you use global variables?
What are the different types of variables in C++?
What is the difference between while and do while loop?
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;
What is the role of C++ shorthand's?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is the v-ptr?
what is scupper?
Explain terminate() and unexpected() function?
What is c++ course?
What is the latest version on c++?