Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean equals(Object oggetto){
- if (oggetto==null){
- return false;
- }
- if(this.getClass()!=oggetto.getClass()){
- return false;
- }
- Razionale convertito = (Razionale) oggetto;
- return (this.numeratore==convertito.numeratore && this.denominatore==convertito.denominatore);
- }
Advertisement
Add Comment
Please, Sign In to add comment