CS 24000 Lecture Notes - Lecture 11: Inline Function, In C, Compile Time
Document Summary
Default parameters, you can set default parameters, only the declaration includes the default parameters and not the implementation. . h (or . hh) has the class declaration with the names of the methods and variables. In some cases you would like to allow some special classes to access the private method or variables of a class. Inline functions: you can de ne functions as incline. This will be a hint for the compiler to inline or expand the function instead of calling it. The inline function may appear in a header le: allocating arrays dynamically. To allocate arrays dynamically you can use new double array = new double[100]; To delete an array call delete [] : parameterized types. In c++ we have three kinds of types: concrete type. It is a user de ned class that is tied to a unique implementation. An int or a simple class: abstract type.