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

What is abstract class in oop?

620


What is object in oop?

782


explain sub-type and sub class? atleast u have differ it into 4 points?

1933


What is overriding in oops?

705


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

1020






Where You Can Use Interface in your Project

1506


Why do we use polymorphism?

653


What is class encapsulation?

709


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1489


• What are the desirable attributes for memory managment?

1825


What is oops and its features?

697


Whats oop mean?

682


How to improve object oriented design skills?

657


How Do you Code Composition and Aggregation in C++ ?

24419


How do you define social class?

681