class Triad
{
private:
int a, b, c;
public:
virtual bool operator == (const Triad &tf)noexcept
{
return ((a == tf.a) && (b == tf.b) && (c == tf.c));
}
};
class Date : public Triad
{
private:
int day;
int month;
int year;
public:
bool operator == (const Date &dt)noexcept override
^^^^^^^
{
return ((day == dt.day) && (month == dt.month) && (year == dt.year));
}
};
Продвижение своими сайтами как стратегия роста и независимости