Ultra Geile Studenten Benutzer Oberfläche (UGSBO)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
967 B

  1. package com.ugsbo.complexnumcalc;
  2. public class ComplexNumber {
  3. private int realPart;
  4. private int imaginaryPart;
  5. /**
  6. * @param realPart The real part of the complex Number
  7. * @param imaginaryPart The imaginary part of the complex Number
  8. */
  9. public ComplexNumber(int realPart, int imaginaryPart) {
  10. this.realPart = realPart;
  11. this.imaginaryPart = imaginaryPart;
  12. }
  13. /**
  14. * @return the realPart
  15. */
  16. public int getRealPart() {
  17. return realPart;
  18. }
  19. /**
  20. * @param realPart the realPart to set
  21. */
  22. public void setRealPart(int realPart) {
  23. this.realPart = realPart;
  24. }
  25. /**
  26. * @return the imaginaryPart
  27. */
  28. public int getImaginaryPart() {
  29. return imaginaryPart;
  30. }
  31. /**
  32. * @param imaginaryPart the imaginaryPart to set
  33. */
  34. public void setImaginaryPart(int imaginaryPart) {
  35. this.imaginaryPart = imaginaryPart;
  36. }
  37. }