12345678910111213141516171819202122
class lineType { public: lineType operator ==(const lineType& line ) const; private: double Xcoef,Ycoef,Zcoef; }; Now the definition of the function.... bool lineType::operator==(const lineType& line ) const { return ( line.Zcoef == line.Xcoef) ; }