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 does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What is a literal in c++?
Can inline functions have a recursion? Give the reason?
What is guard code in c++?
Can a program run without main?
what is importance of data sturture in a programming language?
22 Answers L&T, TCS, Wipro,
what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.
Why do we use using namespace std in c++?
What does the ios::ate argument do?
can output 5 students using one dimensional array
Can a constructor be private?
Write a Program for find and replace a character in a string.