Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the advantages of using friend classes?

1198


Differentiate between declaration and definition.

1103


What is microsoft c++ redistributable 2013?

1160


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1183


Explain the difference between overloading and overriding?

1196


Explain rethrowing exceptions with an example?

1075


How would you obtain segment and offset addresses from a far address of a memory location?

1133


What is class invariant in c++?

1277


what are the decision making statements in C++? Explain if statement with an example?

1144


Define anonymous class.

1135


Const char *p , char const *p What is the difference between the above two?

1253


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

1285


What is an inclusion guard?

1279


What is a responder chain?

1108


What is private inheritance?

1144