ITP 109x Chapter Notes - Chapter 9: Function Overloading, Bjarne Stroustrup, Style Guide

54 views2 pages

Document Summary

Section 9. 01 constructor overloading overload a class creator can overload a constructor by defining multiple constructors with different parameter types. Section 9. 03 method name overloading method name overloading / method overloading occurs when a program has two methods with the same name but differs in the number or types of parameters. Section 9. 04 enumerations enumeration type an enumeration type defines a name for a new type and possible values for that type state machine occurs when a program moves along certain states. Section 9. 05 style guidelines style guide different programmers may have their own style for writing code. K&r style for braces and indents is named after c language creators kernighan and. Stroustrup style for braces and indents is named after c++ language creator bjarne. Section 9. 06 objects and references reference a variable type that refers to an object new this operator allocates memory for an object, then returns a reference to the object"s location in memory.

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