1234
A::A(double diameter):area(diameter*diameter*3.14/4) { ... }
area
12
A::A() : diameter(2.5), area(diameter*diameter*3.14/4) //<-- bad, diameter might not be intialized yet {}