answersLogoWhite

0


Best Answer

The size of an empty class is not normally 1 byte, actually. It will usually be equal to the word size defined by the platform it is running on (often 2 or 4 bytes). This is because the word size is usually used as a memory address size and an empty class still needs to point to some location in memory (even if that location stores no data).

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why the size of class in oops is 1 byte without datamember?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Inner class oops?

Inner class oops is a program. This program is smaller class within a bigger class.


What is an anonymous class in oops?

class is defined in the class


What is class in oops?

class is a user defind datatype


The original spelling of byte came about because of a spelling error?

yes it is true. Dr. Werner Buchholz meant to use bite but used byte! oops! lol


What is data type of class in oops?

user defined


In oops what is the difference between class variable and variable?

Class Variable is a subset of Variables.


What is single inheritance in oops?

Single Inheritance is the concept of deriving a class properties from a single base class


What is actual meaning of class in oops?

Class in oops is a thing that hava no physical existence, it is just a property of any object.object is recognised by a class. we can understand it by this way that "animal" is a class but "tiger" is an object "animal" have not any physical existence but "tiger" is physically exist but recognised by the word "animal".


Can you create a class for black oops online?

yes, but you have to earn trophies first


What is object in oops?

An instance of a class that holds state. Operations defined by it's class (or superclasses) can be performed on it. Now you may wonder what a class is :).


What should you tell a teacher if you urinate in your pants during class?

oops I peed again


How in oops once a class is created it can be changed?

You can change a class by modifying its definition at design time, assuming you have access to the source code.