摘要: 阅读全文
posted @ 2008-04-28 16:44 怒杀神 阅读(162) 评论(0) 推荐(0)
摘要: 举个例子: 有一个基类RectangleEx 1 class RectangleEx 2 { 3 private int _x, _y, _w, _h; 4 5 public int x 6 { 7 get { return _x; } 8 set { _x = value; } 9 } 10 public i... 阅读全文
posted @ 2008-04-28 16:04 怒杀神 阅读(255) 评论(0) 推荐(0)
摘要: 1 public class Complex 2 { 3 int _real; 4 int _imag; 5 public Complex(int i1, int i2) 6 { 7 _real = i1; 8 _imag = i2; 9 } 10 11 public int real 12 ... 阅读全文
posted @ 2008-04-28 10:28 怒杀神 阅读(196) 评论(0) 推荐(0)