照樣把它改成static
有鑑於之前常常被老師糾正
不過當時還不清楚static的差異
只發現寫得出來
現在才能了解當初寫的為什麼會有兩種方式
下面呼叫的方式便可略知ㄧ二
Complex class
Complex Demo for (2+3i)+(4+5i)
Write a program to implement a method that can check whether 2 fractions are equal. You will implement a class called Fraction consisting of a numerator and a denominator. The equality test of 2 fractions should return a boolean value.
Use the following as the tests.