CS 24000 Lecture Notes - Lecture 11: Inline Function, In C, Compile Time

32 views2 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents