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...

When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory??

Answer Posted / sanjay makwana, puna

Private Constructor is not inherited.
When private member varible is not inherited but the size is
occupid in dervied class object.

e.g.
#include <iostream.h>
class A
{
int x;
int y;
};

class B : private A
{
};

int main()
{
cout << sizeof(B);
}

output :
8

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define social class?

1118


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2203


How is polymorphism achieved?

1114


What are the two different types of polymorphism?

1198


How do you explain polymorphism?

1116


What is use of overloading?

1189


What are the 4 pillars of oop?

1206


What is the point of oop?

1263


i got a backdoor offer in process global,Bangalore..Can i work with it?

2894


what is the sylabus for priliminaries?

2227


Who invented oop?

1194


What is a superclass in oop?

1222


Where is pseudocode used?

1170


What are the benefits of interface?

1119


Why is abstraction needed?

1095