ITP 109x Chapter Notes - Chapter 9: Function Overloading, Bjarne Stroustrup, Style Guide
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.