Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a class Fraction The class must have 3 types of constructors covered in lecture 1: default, overloaded with initializer list, copy constructor You must
Write a class Fraction
The class must have 3 types of constructors covered in lecture 1: default, overloaded with initializer list, copy constructor
You must overload the assignment operator.
You must declare the overloaded output operator as a friend rather than part of the class
The Fraction class should implement addition, subtraction, multiplication, division and simplify operations.
Write a main function in a separate file to test each functionality and show that they work.
Submission:
Submit all your header and cpp files.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started