12 lines
210 B
C++
12 lines
210 B
C++
class Integer {
|
|
private:
|
|
int data;
|
|
public:
|
|
Integer(const int &value) : data(value) {}
|
|
Integer(const Integer &other) : data(other.data) {}
|
|
bool operator==(const Integer &t)
|
|
{
|
|
return data == t.data;
|
|
}
|
|
};
|