Question: 3. (5 marks) In the implementation stage, you are asked to write a public Java class. The Java class: o Has a class name MPro

3. (5 marks) In the implementation stage, you are asked to write a public Java class. The Java class: o Has a class name MPro o Has a field, named my of type int o Has a constructor which accepts one parameter of type int. This constructor simply sets the field with the input parameter value. o Has one method, named isSame (), which has one parameter of type int and return type boolean o The method returns true if value of the input parameter is the same as that of the field; false otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
