Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1.   public override bool Equals(object obj)
  2.         {
  3.             if(obj is Klasa_zespolona && obj != null)
  4.             {
  5.                 Klasa_zespolona modul = (Klasa_zespolona)obj;
  6.                 if(modul.czesc_rzeczywista==this.czesc_rzeczywista && modul.czesc_urojona == this.czesc_urojona)
  7.                 {
  8.                     return true;
  9.                 }
  10.                 else
  11.                 {
  12.                     return false;
  13.                 }
  14.  
  15.             }
  16.             else
  17.             {
  18.                 return false;
  19.             }
  20.            
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement