#include <iostream>
#include <string>
using namespace std;
class Box{
int capacity;
public:
Box(){}
Box(double capacity){
this->capacity = capacity;
}
};
int main(int argc, char const *argv[])
{
Box b1(10);
Box b2 = Box(14);
if(b1 == b2){
cout<<"Equal";
}
else{
cout<<"Not Equal";
}
return 0;
}
a) +
b) ==
c) =
d) ()
Which operator should be overloaded in the following code to make the program error free?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which operator should be overloaded in the following code to make the program error free?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!