C++: Getting Started with Operator Overloading
C++
| Expert
- 12 videos | 1h 23m 27s
- Includes Assessment
- Earns a Badge
Operator overloading is an unusual language feature that is quite important in C++, enabling you to specify implementations of the standard operators for your user-defined types. You can overload a wide variety of operators, each having a standard meaning for built-in types that can be mimicked in custom types. If used correctly, this can lead to natural, elegant-looking code. Begin this course by learning how to overload simple operators and explore the restrictions around overloading operators. Then, discover how to overload operators as member functions of a class, providing easy access to the internal state of the object. Finally, focus on identifying situations where the member function implementation will not work and investigate best practices of operator overloading.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseOutline key concepts of operator overloadingSet up and instantiate classesOverload the < operatorUse code to overload operatorsInline operator overloads and to use as member functions
-
Define operator overloads using non-member functionsUse friend functions with operator overloadingOverload operators with primitive types as the right operandRecognize stylistic elements of operator overloadingOverload operators with primitive types as the left operandSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 31s
-
7m 22s
-
5m 54s
-
9m 9s
-
10m 7s
-
5m 54s
-
7m 13s
-
5m 3s
-
10m 56s
-
7m 23s
-
9m 58s
-
2m 56s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.