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 / gayatri p

Private

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is recursion allowed in inline functions?

610


Write my own zero-argument manipulator that should work same as hex?

589


How is objective c different from c++?

796


What is the use of "new" operator?

659


Differentiate between a constructor and a method in C++.

563






Explain Text Manipulation Routines?

646


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

606


What is #include c++?

571


Explain public, protected, private in c++?

567


Can I learn c++ without learning c?

563


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

790


What is #include iostream in c++?

595


What is a far pointer? where we use it?

617


Why is the function main() special?

626


What is array in c++ example?

653