Object-Oriented Design in C++
Exercise 4: C++ Inheritance


Copy the files for the amended StringC into your home directory. Carefully examine the overloaded operators and other changes. Now derive a class FileNameC from StringC. [Create files fname.hh and fname.cc.] Add to class FileNameC

Download the code for Simpsons integration example. Scrutinize it closely.

Now create a (very simple) new class for complex numbers and integrate exp(ix) from 0 to 0.1. Check the example.

What criticisms can be made of this example??