what is the size of an empty class

Answer Posted / ankit sharma

size of empty class is 1 byte.


if object does not point to any resource.
it shows object is null but object also get some space in
memory by default either it is empty or not.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2012


What is the point of oop?

660


What is meant by multiple inheritance?

742


What is polymorphism in oops?

565


What is encapsulation and abstraction? How are they implemented in C++?

639






write a program that takes input in digits and display the result in words from 1 to 1000

1995


any one please tell me the purpose of operator overloading

1968


What is multilevel inheritance explain with example?

630


What causes polymorphism?

577


What does I oop mean?

618


When not to use object oriented programming?

574


What is variable example?

599


Please send ford technologies placement paper 2 my mail id

1660


What do you mean by variable?

579


what is the drawback of classical methods in oops?

2924