bool operator >(Counter & rhs)
{
}
bool operator ==(Counter & rhs)
{
}
bool operator !=(Counter & rhs)
johnnyboyslim
0
Newbie Poster
Recommended Answers
Jump to PostThose are overloaded binary operators. Basically you are specifying what myClass1 > myClass2 really means. For example, say you had a class that contains 2 integers, a and b. If you wanted to implement some functionality that compared the two classes (for example a greater than > operator) your computer …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.