// complex.h  A class for Complex Number
// P. Conrad for CISC181, Spring 2006

#ifndef COMPLEX_H
#define COMPLEX_H

class Complex_C
{
 public: // typically contains member functions ("methods")

  Complex_C(); // constructor... always same name as the class.
  Complex_C(double real, double imag); // overloaded constructor
  
  // getters and setters
  void setReal(double aVal);
  void setImag(double bVal);
  double getReal(void) const;
  double getImag(void) const;

  void print(void) const; // print the number on cout

 private: // private part of class typically contains "data members"
  // data members are also called "attributes"

  double a; // real part
  double b; // imaginary part

};



#endif // COMPLEX_H
