C++: Getting Started with Operator Overloading

C++    |    Expert
  • 12 videos | 1h 23m 27s
  • Includes Assessment
  • Earns a Badge
Rating 3.9 of 8 users Rating 3.9 of 8 users (8)
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 course
    Outline key concepts of operator overloading
    Set up and instantiate classes
    Overload the < operator
    Use code to overload operators
    Inline operator overloads and to use as member functions
  • Define operator overloads using non-member functions
    Use friend functions with operator overloading
    Overload operators with primitive types as the right operand
    Recognize stylistic elements of operator overloading
    Overload operators with primitive types as the left operand
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 31s
  • 7m 22s
  • Locked
    3.  Creating Classes in C++
    5m 54s
  • Locked
    4.  Overloading Operators
    9m 9s
  • Locked
    5.  Using Code to Overload Operators
    10m 7s
  • Locked
    6.  Using Overloaded Operators as Member Functions
    5m 54s
  • Locked
    7.  Using Non-member Functions to Overload Operators
    7m 13s
  • Locked
    8.  Using Friend Functions with Operator Overloading
    5m 3s
  • Locked
    9.  Overloading Operators with Primitive Right Operands
    10m 56s
  • Locked
    10.  Using Best Practices of Operator Overloading
    7m 23s
  • Locked
    11.  Overloading Operators with Primitive Left Operands
    9m 58s
  • Locked
    12.  Course Summary
    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.

YOU MIGHT ALSO LIKE

Rating 4.5 of 53 users Rating 4.5 of 53 users (53)
Rating 5.0 of 4 users Rating 5.0 of 4 users (4)
Rating 4.4 of 88 users Rating 4.4 of 88 users (88)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 9 users Rating 4.4 of 9 users (9)
Rating 4.2 of 111 users Rating 4.2 of 111 users (111)
Rating 4.2 of 46 users Rating 4.2 of 46 users (46)