Suppose:
Class A{
  float one;
  float two;
  float three;
 //... many, many member functions, and maybe static functions too ..
  }
Can I assume that, no matter how many functions are in this class, the following should generally be true:
sizeof(A)==sizeof(float)*3
Such that I could even assert this:
static_assert(sizeof(A) == sizeof(float) * 3, "Your class is padding memory.");
Is this accurate?
Now, suppose class A inherits from another class. I assume the above would not be true, and rather you'd have to include in the sizeof assertion the addition of the size of ivars from the base class?
 
     
    