Aryan Mukerji's Repository
-
Updated
May 7, 2020 - C++
Aryan Mukerji's Repository
Operator Overloading in C++
The Fraction class in C++ uses fractions with robust arithmetic operations and comparison capabilities. It includes constructors for flexible initialization, overloads operators for intuitive usage (including arithmetic, comparison, and unary operations), and provides utility functions like normalization and error handling for zero denominators.
Operator overloading concepts in OOP.
Unary Operator overloading concepts in OOP.
Add a description, image, and links to the unaryoperator topic page so that developers can more easily learn about it.
To associate your repository with the unaryoperator topic, visit your repo's landing page and select "manage topics."