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 / guest

private

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest c++ standard?

673


Define Virtual function in C++.

619


What is setw manipulator in c++?

592


What is the use of string in c++?

545


an integer constant must have atleast one a) character b) digit c) decimal point

552






What are static and dynamic type checking?

606


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2064


Is c++ map a hash table?

563


What is the fastest c++ compiler?

580


Should the this pointer can be used in the constructor?

549


What are the advantages of early binding?

606


What are the four partitions in which c++ compiler divides the ram?

696


Can you pass a vector to a function?

533


What can I use instead of namespace std?

637


How long will it take to learn programming?

580