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's the order in which the objects in an array are destructed?
Is c++ built on c?
What is else if syntax?
Can circle be called an ellipse?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
What is array in c++ pdf?
What is an iterator class in c++?
What are the manipulators in c++?
Explain the isa and hasa class relationships.
Explain how overloading takes place in c++?
What are the unique features of C++.
What is the difference between reference type and pointers.