Exemple #1
0
 public int PriceDifference(Apartment compared)
 {
     // Math.Abs returns the absolute value
     return(Math.Abs((compared.squares * compared.pricePerSquare) - (this.squares * this.pricePerSquare)));
 }
Exemple #2
0
 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()));
        }
Exemple #4
0
 public int PriceDifference(Apartment compared)
 {
     // Math.Abs returns the absolute value
     return(0);
 }
Exemple #5
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);
 }