MymathPrac.cpp : Defines the entry point for the console application, LAB Computer science 2 help

MymathPrac.cpp : Defines the entry point for the console application, LAB Computer science 2 help

//CS II Lab

//Name:_x000D_
// Date:_x000D_
class MyMath {_x000D_
private:_x000D_
int num1;_x000D_
int num2;_x000D_
public:_x000D_
MyMath():_x000D_
MyMath(int n1, int n2);_x000D_
int myMathFunction();_x000D_
void display();_x000D_
};_x000D_
MyMath::MyMath(){_x000D_
num1 = 10;_x000D_
num2 = 10;_x000D_
};_x000D_
_x000D_
MyMath::MyMath(int n1, int n2){_x000D_
num1=n1;_x000D_
num2=n2;_x000D_
}_x000D_
void MyMath:: setNum1(int n1){_x000D_
num1=n1;_x000D_
}_x000D_
void MyMath:: setNum2(int n2){_x000D_
num2=n2;_x000D_
}_x000D_
int MyMath:: getNum1(){_x000D_
return Num1;_x000D_
}_x000D_
int MyMath:: getNum2(){_x000D_
return Num2;_x000D_
}_x000D_
//myMathFunction()_x000D_
//display()

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper