#include <iostream> 

using namespace std;


class Obiekt
{
public:
	const int liczba;

	Obiekt();
	Obiekt &operator=(const Obiekt &wzor);
};

Obiekt::Obiekt() : liczba(10)
{
}

Obiekt &Obiekt::operator=(const Obiekt &wzor)
{
	if(this != &wzor)
	{
		liczba = wzor.liczba;
	}
	return *this;
}

int main()
{
	Obiekt test1;
	Obiekt test2;
	test2 = test1;
	cout << test2.liczba;

	return 0;
}