public override bool Equals(object obj)
{
if (obj == null || (this.GetType() != obj.GetType()))
return false;
else
{
if (this.rok == ((Data_dzien)obj).rok && this.miesiac == ((Data_dzien)obj).miesiac && this.dzien == ((Data_dzien)obj).dzien)
{
return true;
}
else
return false;
}
}