Are classes larger in memory than their members in C++?

Viewed 176

Let's say I have some class who's only member is an int. If it wasn't in a class, the int alone would be 4 bytes. Does the class take more than 4 bytes of memory (in C++)?

2 Answers
Related