Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override bool Equals(object obj)
- {
- if(obj is Klasa_zespolona && obj != null)
- {
- Klasa_zespolona modul = (Klasa_zespolona)obj;
- if(modul.czesc_rzeczywista==this.czesc_rzeczywista && modul.czesc_urojona == this.czesc_urojona)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- else
- {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement