The class Register8 is already defined with a private variable value, a constructor, and a getter.
Register8
value
Your task is to define the == operator so that two Register8 objects can be compared.
==
true
false
In main()we are doing:
main()
two integers
Print:
Equal
or
Not Equal
Example Input:
10 10
Output:
Input:
5 7
Test Cases
Test Results
Input
Expected Output