示例#1
0
		public string FishInfo(Fish f)
		{
			return "Species : " + f.Species + "\n" +
				   "Length : " + f.Length + "cm\n" +
				   "Weight : " + f.Weight + "kg\n" +
				   "Lake : " + f.Lake + "\n" +
				   "Location : " + f.Location + "\n";
		}
示例#2
0
		public void CatchFish(Fish f)
		{
			fish.Add(f);
			Console.WriteLine("Fisher : " + name + " caught a new fish\n" + FishInfo(f));
		}