main() method
serves this purpose.
new operation in conjunction with
constructors.
Complex and have two
variables reference it.
copyTo(Complex c) method that copies the value
of the current complex number to its parameter. Your method will
look something like
/**
* Copy the current number to c.
*/
public void copyTo(Complex c) {
c.real_part = real_part;
c.imaginary_part = imaginary_part;
} // copyTo
copyTo() method.
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Tue Oct 7 16:51:27 1997.
This page generated on Wed Nov 5 12:38:48 1997 by SiteWeaver.
Contact our webmaster at rebelsky@math.grin.edu