Answer Posted / som shekhar
1 byte.
Reason being when compiler sees an empty class then then it
assigns a 1 byte memory, since the compiler sees the
declaration of the class so he needs to assign some space in
the memory, and hence assign 1 byte memory to hold the
address of the class.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is oops in simple words?
How can you overcome the diamond problem in inheritance?
What is a class in oop?
What is the problem with multiple inheritance?
Can main method override?
Is enum a class?
What is class and object in oops?
What is protected in oop?
Templates mean
What is cohesion in oop?
Are polymorphisms mutations?
when to use 'mutable' keyword and when to use 'const cast' in c++
What exactly is polymorphism?
Why do we use polymorphism?
What is polymorphism give a real life example?