Richie

Sometimes at night when I look up at the stars, and see the whole sky just laid out there, don't you think I ain't remembering it all. I still got dreams like anybody else, and ever so often, I am thinking about how things might of been. And then, all of a sudden, I'm forty, fifty, sixty years old, you know?

2007年4月1日 #

CLR/C# 的一些语言特性

摘要: 1. new和override区别 override在子类中重写基类的方法;new在子类中为基类同名(virtual)方法添加一个新的版本,会保留基类的同名(virtual)方法。 如果基类的同名方法不给出new和override修饰符,.Net默认采用new的方式,编译时将产生一条警告信息。 关于重载:一般有按名称隐藏和按签名隐藏两种策略,C#默认按签名隐藏,即默... 阅读全文

posted @ 2007-04-01 22:24 riccc 阅读(689) 评论(2) 推荐(0) 编辑

导航