assign6_s_f88/Product.cpp
//*********************************************************************
// greaterThan: compares this Product to another
//   compares productNames, then locators if productNames are equal
// other: the Product being compared to this one
// returns true if this one is greater than the other, otherwise false.
//*********************************************************************
compares this Product to another
compares productNames, then locators if productNames are equal
other: the Product being compared to this one
returns true if this one is greater than the other, otherwise false.
compares this Product to another compares productNames then locators if productNames are equal other : the Product being compared to this one returns true if this one is greater than the other otherwise false .
bool Product::greaterThan (Product other)
{
    if (productName == other.productName)
        return (locator > other.locator);
    return productName > other.productName;
}
bool Product :: greaterThan ( Product other ) { if ( productName == other . productName ) return ( locator > other . locator ) ; return productName > other . productName ; }
greaterThan: compares this Product to another
compares productNames, then locators if productNames are equal
other: the Product being compared to this one
returns true if this one is greater than the other, otherwise false.
greaterThan : compares this Product to another compares productNames then locators if productNames are equal other : the Product being compared to this one returns true if this one is greater than the other otherwise false .