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 a pointer with example?
What is the meaning of string in c++?
When can you tell that a memory leak will occur?
Explain the difference between overloading and overriding?
What is the basic structure of a c++ program?
Which bit wise operator is suitable for turning off a particular bit in a number?
What is c++ namespace?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
What is scope of a variable? (LOLZ)
can anybody please tell me how to write a program in c++,without using semicolon(;)
How much is size of struct having 1 char & 1 integer?
Can you Mention some Application of C/C++?