Tuesday, May 15, 2007

assignment 2 - error handling

this program have 2 classes:
- Class1: main class.this class will create an object by calling a constructor from CDivided class
- CDivided: this class has a default constructor and another constructor with 2 arguements
there are 3 privates variable: a as a nominator and b as a denominator, and result of a/b

this constructor from CDivided will pass information about constructor failure

download the code here:
assignment2.zip

No comments: