Write a program to test all the memeber function and


Self-test Exercise 17 asked you to overload the operator >>and the operator<< for a class Paris.complete and test this exercise.implement the default constructor and the constructors with one or two int parameters.the one-parameters constructor should initialize the first memeber of the pair;the second member of the pair is to 0 overload binary operator+to add pairs according to the rule

(a, b) + (c, d) = (a + c, b + d)

overload operator - analogously.

overload operator * on paris and int according to the rule

(a, b) * c =(a *c, b * c)

Write a program to test all the memeber function and overloaded operators in your class definition.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program to test all the memeber function and
Reference No:- TGS01191919

Expected delivery within 24 Hours