Object Orientation Enlarged by an Example!
This program illustrates how to implement the arithmetic operation in an object oriented way.
Here we have a class with 2 variables. For each operation an object of this class is created to do the operation instead of declaring such much variables. Therefore, this method is, for a large scale implementation, is quite efficient.
so have a try on it.
//simple operations in object oriented method
dom add, mult,diff,div;
Have u tried this?