public int PriceDifference(Apartment compared) { // Math.Abs returns the absolute value return(Math.Abs((compared.squares * compared.pricePerSquare) - (this.squares * this.pricePerSquare))); }
public bool MoreExpensiveThan(Apartment compared) { return(false); }
public int PriceDifference(Apartment compared) { // Math.Abs returns the absolute value return(Math.Abs(compared.Price() - this.Price())); }
public int PriceDifference(Apartment compared) { // Math.Abs returns the absolute value return(0); }
public bool LargerThan(Apartment compared) { return(false); }
public bool MoreExpensiveThan(Apartment compared) { return(this.Price() > compared.Price()); }
public int PriceDifference(Apartment compared) { return(Math.Abs(this.Price() - compared.Price())); }
public bool LargerThan(Apartment compared) { return(this.squares > compared.squares); }