示例#1
0
文件: Bach.cs 项目: Nepcam/BachOOP
 public bool compareBach(Bach b1)
 {
     if (this.region == b1.region && this.city == b1.city && this.suburb == b1.suburb && this.nearestBeach == b1.nearestBeach && this.rentalAvailable == b1.rentalAvailable)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
文件: main.cs 项目: Nepcam/BachOOP
 public static void Main(string[] args)
 {
     Bach bach1 = new Bach("Bay of Plenty", "Tauranga", "Mt. Maunganui", "Pilot Bay", true);
 }