Question: Create a Java class (Calculate) which has two private int variables (numl, num2,). The class has three methods a Constructor with parameters. MaxInt method will
Create a Java class (Calculate) which has two private int variables (numl, num2,). The class has three methods a Constructor with parameters. MaxInt method will retum (not print) the max of the two numbers and PrintInfo method will print the two numbers on the screen. The class has get and set methods for each instance variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
