Wednesday, June 23, 2004

Relearning C++ and Random Thoughts 2

inline
- geared toward performance.
function calls involve execution-time overhead. C++ provies inline functions to help reduce function-call overhead--especially for small functions. The qualifier inline "advises" the compiler to generate a copy of the function's code in place (when appropriate) to avoid a function call.

--side effect it can increase the program size.


class ha_example: public handler { }
An example of Polymorphisam-the principle of inheritance. Classes are related by inheritance but respond differently to the same message better known as member function calls.

0 Comments:

Post a Comment

<< Home