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 this pointer in oop?

997


What is encapsulation in oops?

955


What do you mean by Encapsulation?

1014


Why is object oriented programming so hard?

1022


Which language is not a true object oriented programming language?

1061


How many human genes are polymorphic?

1000


What is overloading and its types?

1078


What are the data types in oop?

1044


class type to basic type conversion

2337


What is object and example?

1112


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1568


Is data hiding and abstraction same?

966


Can static class have constructor?

983


What is abstraction in oops with example?

1213


Where You Can Use Interface in your Project

1834