Esempio n. 1
0
bool Offer::operator==(Offer& other)
{
	if (this->destination == other.getDest() &&
		this->type == other.getType() &&
		this->price == other.getPrice())
		return (true);
	return (false);
}
Esempio n. 2
0
void	Offer::operator=(Offer other)
{
	this->destination = other.getDest();
	this->type = other.getType();
	this->price = other.getPrice();
}