what is the size of an empty class

Answer Posted / ansari razi

1 Byte,
when compiling the program compiler allocates 1 byte memory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better struts or spring?

624


What is abstract class in oops?

600


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1701


State what is encapsulation and friend function?

700


What is use of overloading?

610






Are polymorphisms mutations?

703


Is oop better than procedural?

576


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4245


What is ambiguity in inheritance?

625


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1837


What is object in oops?

615


Why do we use class in oops?

555


What is abstraction encapsulation?

660


What is abstraction in oops?

590


What is super in oop?

599