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
Showing posts with label error handling. Show all posts
Showing posts with label error handling. Show all posts
Tuesday, May 15, 2007
Subscribe to:
Posts (Atom)