well, not in detail, but when you say
"new A()",
you have to include the definition of class A, either via a header file or in your .cpp file. So the compiler can find everything it needs to determine the size of class A.