6.7 OOP challenge-2

Hello, in the previous course, we created our Simple Calculator class, we put the properties then the methods ... and the setters, getter that needs. in this course, we’re going to do tests. So we’re going to start by creating ... our main class. to test, we’re going to create an object. of our SimpleCalculator class on the call calculator equals a new ... simpleCalculator Pardon. In the firstNumber So setter setter of FirstNumber, we ... will put 5 . 0 for example And also . SecondeNumber, we’re going to put 4 and the first method we’re going to ... call is addiction so getAddictionresult. sout add Which corresponds to the addiction. we will put even calculator point get AddictionResult() and ... there have come out, we got 5 plus 4 which is equal to 9 In the terminal Addiction equal to 9 ... And we’ll continue, we’ll call another method. subtraction equals calculator point get subtractionResult. and we’ll have ... 1. in the terminal Normally, I’ll have 1. we’ll go back into our SimpleCalculator and checked. Yes, we have ... not returned the result, so will return result you have to be vigilant when you create the methods to check well ... we will recompile our program. and now we have 1. we will continue, we will change. ls valeurs Donc ... calculator set FirstNumber We will put. 5.25 calculator point setSecondeNumber, we will put 2 we will call the getMultiplicationResult method ... sout equals calculator point getMultiplicationResult and there In the console there will be 10.5 we will call the last method. the division calculator point get divisionResult on compiles our program. and there we see that all the methods we ... have created function properly I hope you have followed this step that is essential to understand well. getters, ... setters and creating methods in a class In the next class, we will look at the ... builders. Which is such an essential in creating a class.