Given a an equivalence relation, ~, on a set S, the equivalence class, cl(a), is the set of all objects, x, in S such that x~ a. That is, it is the set of all things in S equivalent to a.
To find equivalence classes, first you need to understand the equivalence relation!
Here, the equivalence relation is "a~ b if and only if a-b is an even integer.
It shouldn't take too much to see that if a and b are "of the same parity" (either both even or both odd) then a- b is even:
If a and b are both even then we can write a= 2m, b= 2n so that a- b= 2m- 2n= 2(m-n) and so is even.
If a and b are both odd then we can write a= 2m+1, b= 2n+ 1 so that a- b= (2m+1)- (2n+1)= 2m- 2n= 2(m- n) which again is even.
If is only if one of a, b is even and the other odd that a and b are NOT even:
If a is even and b odd, then a= 2m and b= 2n+1 so a- b= 2m-(2n+1)= m- 2n- 1= 2(m-n)-1= 2(2m-n-1)+ 1 which is an odd number, not an even number. Similarly, if a is odd and b even, then a= 2m+1, b= 2n so a- b= (2m+1)- 2n= 2(m- n)+ 1, an odd number.
That is, odd numbers are equivalent to all other odd numbers and even numbers are equivalent to all other even numbers. The two equivalence classes are the set of all odd numbers and the set of all even numbers. 1 is in the first of those and 0 is in the second.