In this example we tell the object how it is to behave by setting it's type in the constructor.
| 40 | // In this example we tell the object how it is to behave by setting |
| 41 | // it's type in the constructor. |
| 42 | BazClass::BazClass( int type ) : |
| 43 | m_type( type ) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | void BazClass::Baz() { |
| 48 | // This is where the object picks how it is going to behave |
nothing calls this directly
no outgoing calls
no test coverage detected