public class WaterExp {private int exp = 0; private string bye; public void Waterexp() {exp += 3; bye = "告辞!"; Console.WriteLine("经验+{0},{1}", exp, bye);}} class Program {static void Main(string[] args) {Water water = new Water(); water.Waterexp();}}