Skip to main content

18.4) Exercise 30


Modify your solution to Exercise 29 so that all methods are inlined into circle.hpp and the initializer list syntax is used for the constructor. Remove circle.cpp, as it is no longer relevant.

Check that your test program compiles. Remember that your compilation commands no longer need to include circle.cpp or circle.o, as all code for the Circle class is now contained entirely within the header file.