+ 1

C++ program

Create a class “Class1” and place 2 integers as private members. To initialize them use constructor. Create a class “Class2” and place 2 integers as private members. To initialize them use constructor. Add a friend function Compare () to compare the members of “Class1” and “Class2” and display whether the instance of class1 is = instance of class2 or class1 < class2 or class1 > class2. Add a function display to display the values of the data members.

28th Mar 2018, 7:39 PM
Manisha R Gupta
Manisha R Gupta - avatar
1 Answer
+ 1
I think c++ is really cool
30th Mar 2018, 11:29 PM
Theoden