C Plus Plus Programming, Cplusplus, C Plus Plus Language, Systems Programming, Software Engineering.
are built in types to do that, and if we have to use something like this then we’re creating the objects in the wrong way Sometime there might be a valid reason to compare the objects so that they can be used in algorithms like sorting etc but the better way to do so is by creating a comparator