Java: Comparing a class with another within that class using a my own .equals
- by user1670252
I am making a method .equals replacing the equals method used. It accepts a object. I want it to check if that object equals the class that runs the .equals class.
I know I want to compare all the private methods I have to that object.
Is there a way to do this without making another private class to get the private variables from the object?…