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 return (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. B. Question (5 points) Write a Java application named "Test" that demonstrates and tests the Calculate class by creating one object and calling the MaxInt and PrintInfo methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
