The document defines a Java class with a constructor that takes two integer parameters and assigns them to instance variables, and two methods - one to print the sum of the instance variables and one to print the difference.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
16 views1 page
Test
The document defines a Java class with a constructor that takes two integer parameters and assigns them to instance variables, and two methods - one to print the sum of the instance variables and one to print the difference.