Design Principles (contd.)
Design Principles (contd.)
- An OTEC class is defined by
- inheriting from a (base) class in any of the packages and enhancing it.
- composing from other OTEC-defined classes.
- In general, if a class is external to OTEC, and complex, it is inherited from, else is composed into the new class.
- using virtual functions for re-definition or for fine-tuning.
- using containers for anything that involves memory management to minimize memory leaks.