WAP that create a class for representing a complex variable consisting the following information
1.    Two instance hidden variable real and imaginary.
2.    Two constructor’s i.e 1 default and other 2 augmented constructor.
3.    Two get methods for accessing the values of instance variable.
4.    Add methods that returns (object) the addition of two complex object.
5.    Add methods that returns (object) the subtraction of two complex object.
6.    Add methods that returns (object) the multiply of two complex object.
Comments
Leave a comment