Simple Function, just need help with concept

Here is the problem statement.
// Overloaded the relational operators
bool operator==(const BookType& otherBook) const
{
// Overloaded operator==
// Post: Return 1 if and only the two books' ISBN-13 are the same;
// otherwise, return 0.
||I know it has to do with returning true and false statements at some point, but am just not sure how||
I was thinking a little like:
if
{
otherBook = BookType;
}
return true;
else
{
return false;
}
Am I close? Any help would be appreciated.
return this->ISBN == that.ISBN
How BookType class is defined?
If it has field like std::string ISBN you can do something like
1
2
3
4
if (ISBN == otherBook.ISBN)
    return true;
else
    return false;
Topic archived. No new replies allowed.