Question: 1.Give a class definition for a class that will contain an int and a double. Your class must include access (get) methods for the two

 1.Give a class definition for a class that will contain an

1.Give a class definition for a class that will contain an int and a double. Your class must include access (get) methods for the two instance variables, a default constructor, a complete constructor, and a routine to print the two instance variables to cout. 2.Give the code to dynamically create a 100 element array in C++. Show how the item would be deleted once you finished working with it 3.Given the following class provide an overloaded output operator for the class (both declaration and implementation) #include class Problem3 f protected: string name; double battingAverage; public: Problem3 (string n-"", double base . o) { name = n; battingAverage ba; string getName() return getName;) double getBattingAverage() f return battingAverage; ) 1

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!