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
Answer Posted / madhusudan singh
d) public
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is an associative container in c++?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What is ios flag in c++?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Explain the scope of resolution operator.
Difference between a homogeneous and a heterogeneous container
What are the four main data types?
What is the disadvantage of using a macro?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What are enumerations?
How would you differentiate between a pre and post increment operators while overloading?
What is the difference between strcpy() and strncpy()?
What is the importance of mutable keyword?
How to access a variable of the structure?