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

what is the size of an empty class

Answer Posted / som shekhar

1 byte.

Reason being when compiler sees an empty class then then it
assigns a 1 byte memory, since the compiler sees the
declaration of the class so he needs to assign some space in
the memory, and hence assign 1 byte memory to hold the
address of the class.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is different between oops and c++

2620


What is abstraction and encapsulation?

1065


What is the real life example of polymorphism?

1235


How to improve object oriented design skills?

1066


What is abstraction with example?

1171


Can private class be inherited?

1226


What is variable example?

1092


which feature are not hold visual basic of oop?

2237


hi all..i want to know oops concepts clearly can any1 explain??

2177


any one please tell me the purpose of operator overloading

2444


what is the sylabus for priliminaries?

2227


What is overloading in oops?

1216


What is coupling in oop?

1084


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4215


When not to use object oriented programming?

1182