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


Please Help Members By Posting Answers For Below Questions

How a modifier is similar to mutator?

738


Write a program using display() function which takes two arguments.

700


When do we run a shell in the unix system?

673


How do you sort a sort function in c++ to sort in descending order?

672


What is cout flush?

659






What is meant by the term name mangling in c++?

608


What is binary search in c++?

682


Can notepad ++ run c++?

635


Define the operators that can be used with a pointer.

661


What is the difference between object-oriented programming and procedural programming?

788


What is namespace & why it is used in c++?

690


What is format for defining a structure?

682


Where is atoi defined?

655


How are the features of c++ different from c?

689


Do the parentheses after the type name make a difference with new?

747