OPERATOR OVERLOADING

8 programming challenges to help you master the fundamentals of C++ using OBJECT ORIENTED PROGRAMMING.

1

Define a class Complex to represent complex numbers. Overload the + operator to add two complex numbers.

2

Create a class Fraction to represent fractions. Overload the + operator to add two fractions.

3

Define a class Matrix to represent matrices. Overload the * operator to multiply two matrices.

4

Implement a class String to represent strings. Overload the + operator to concatenate two strings.

5

Define a class Date to represent dates. Overload the < operator to compare two dates.

6

Implement a class Money to represent money. Overload the + operator to add two amounts of money.

7

Create a class Rectangle to represent rectangles. Overload the == operator to check if two rectangles are equal.

8

Define a class Time to represent time. Overload the << operator to display the time in HH:MM format.