Chapter 13 Overloading
Chapter 13 Overloading
Chapter 13
C++ Programming
OBJECTIVES:
Learn about overloading
Become familiar with the restrictions on operator overloading
Examine the pointer "this"
Learn about "friend" functions
learn how to overload operators as members and nonmembers of a class
Discover how to overload various operators
Become familiar with the requirements for classes with pointer member variables
Learn about templates
Explore how to construct function templates and class templates
Become aware of c++ 11 random number generators
OVERLOADING
Example: ++ Operator
FUNCTION OVERLOADING VS FUNCTION OVERRIDING: