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 the use of oops?

1039


What is meant by oops concept?

1028


Can you inherit a private class?

1092


what are the realtime excercises in C++?

2826


Please send ford technologies placement paper 2 my mail id

2096


What is oops in simple words?

1070


Give two or more real cenario of virtual function and vertual object

2316


What are two types of polymorphism?

1058


What is the difference between encapsulation and polymorphism?

1089


Why do we use oop?

1081


What is encapsulation with real life example?

1027


What is the difference between a constructor and a destructor?

1237


Can private class be inherited?

1150


what are the ways in which a constructors can be called?

2114


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

2116