+ 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.
1 Answer
+ 1
I think c++ is really cool