assign6_s_f88/Product.cpp
//***********************************************************
// isEqual: compares this Product to another
//   Products are equal if locators and productNames are equal
// other: the Product being compared to this one
// returns true if they are equal, otherwise false.
//***********************************************************
compares this Product to another
Products are equal if locators and productNames are equal
other: the Product being compared to this one
returns true if they are equal, otherwise false.
compares this Product to another Products are equal if locators and productNames are equal other : the Product being compared to this one returns true if they are equal otherwise false .
bool Product::isEqual(Product other)
{
    if (locator != other.locator)
        return false;
    if (productName != other.productName)
        return false;
    return true;
}
bool Product :: isEqual ( Product other ) { if ( locator != other . locator ) return false ; if ( productName != other . productName ) return false ; return true ; }
isEqual: compares this Product to another
Products are equal if locators and productNames are equal
other: the Product being compared to this one
returns true if they are equal, otherwise false.
isEqual : compares this Product to another Products are equal if locators and productNames are equal other : the Product being compared to this one returns true if they are equal otherwise false .