Question: c++ please 2. Create a class called IntPair that holds two integers. This class should have two member variables to hold the integers. You should

c++ please c++ please 2. Create a class called IntPair that holds two integers.

2. Create a class called IntPair that holds two integers. This class should have two member variables to hold the integers. You should also create members functions two constructors, and one named "set" that will let you assign values to the integers, and one named "get" that will allow you to access values to the integers, and overload operator + to add two IntPair objects by adding their two data members respectively, then overload the insertion operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!