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