The closure property states that when you carry out a certain operation on two elements of a set, the set is closed under the operation if the result is also an element of the set.
For example, as shown in the figure above, adding two whole numbers will result in a whole number.
3 is a whole number
7 is a whole number
3 + 7 = 10 is also a whole number.
Notice that the set is the set of whole numbers
The two elements of the set are 3 and 7
The operation is addition
What can happen if the operation you carry out on 3 and 7 is subtraction instead of addition?
You could end up with a result that is not an element of the set of whole numbers.
3 - 7 = -4
Since -4 is not a whole number, the set of whole numbers is not closed under subtraction.
Let S be a set and * an operation. If x and y are elements of S and x*y is also an element of S, then S is closed under the operation *