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 are the 4 main oop principles?

675


What is polymorphism oop?

615


Why do we use class?

631


What is polymorphism explain?

680


What are the types of abstraction?

551






What is basic concept of oop?

694


What makes a language oop?

591


How to use CMutex, CSemaphore in VC++ MFC

4324


What is encapsulation in oop?

601


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1977


What is object in oops?

608


What is oops concept with example?

574


What do you mean by abstraction?

605


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1662


What is coupling in oops?

591