answersLogoWhite

0

That would depend on the programming language; even for the same language, it may vary for specific implementations. Usually such an object should just use a few bytes.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the size of an empty class?

1 byte. An empty class cannot be zero bytes otherwise it would be impossible to create an array of empty class objects, thus a dummy member is used to give it the minimum addressable size.


Why the size of class in oops is 1 byte without datamember?

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


How do you find the size of a class object?

Java does not have a sizeOf() operator and hence there is no way we can actually determine the size of a java class object. However we can analyze the overall heap space utilization to try to get an approximate indication of how much memory is used by an object but it is not accurate.


Every class in derives from what class?

From the Object class.From the Object class.From the Object class.From the Object class.


What is class and objects?

class is template of object and object is instance of a class


What is object class in java?

object class is a super class for all other class...


What is the Object class parent?

Object is the topmost class in the Java Class hierarchy. There is no Class above Object. All classes in Java are implicitly derived from Object.


What class is the super class for ALL Java classes?

The Object class, in the java.lang package, sits at the top of the class hierarchy tree. Every class is a descendant, direct or indirect, of the Object class. Every class you use or write inherits the instance methods of Object. You need not use any of these methods, but, if you choose to do so, you may need to override them with code that is specific to your class


What object contains nothing and begins with an e?

Empty object.


What is the value of an empty Carolina blue soda?

[object Object]


What is need of object in object oriented programming?

Object is an instant of the class, by using an object we can members of the class.


What is the size of a class object in c?

There are no classes let alone objects in C. It is not an object oriented language thus all data types are primitive types. C++ is object oriented. The size of an object is equal to the sum of the non-static class member attributes, including any padding bytes required for memory alignment purposes. The size of a class is equal to the sum of the static class member attributes, plus any padding bytes required for memory alignment purpose. To minimise the need for padding bytes within the class and within objects of the class, it is best to declare all class member attributes by order of size, largest first. However, static member attributes can be declared separately from non-static member attributes since the two are allocated separately in memory.