如题
我都搞糊涂了!
我都搞糊涂了!
解决方案 »
- C# .net 3.5 SerialPort 数据帧第一次接出错
- 怎样调整磁盘空间大小
- 如何提高用户界面的响应度?? 涉及C# form 多线程 求教
- WebService服务参数问题,在线等!!
- 我想让listbox中,用键盘选中某行时,能让鼠标也自动移到选中的这行上。如何实现?
- 大家好。有没有人知道。如何让winform窗体中的控件自动换行?而不是出现滚动条?
- 提示web程序访问输入密码???客户端不能访问???
- C#中如何实现“链表”??????
- listbox删除选中行问题
- 请问怎样可以做出像Visual C# .Net 工具中那样的菜单???
- 用update怎么更新不了数据库
- 高分求教:自定义控件弹出页面的问题
namespace Hiding
{
public class Base
{
public virtual void Method1()
{
Console.WriteLine("Base.Method1 called");
}
public virtual void Method2()
{
Console.WriteLine("Base.Method2 called");
}
}
}//Derived.cs
namespace Hiding
{
public class Derived : Base
{
public override void Method1()
{
Console.WriteLine("Derived.Method1 called");
} public new void Method2()
{
Console.WriteLine("Derived.Method2 called");
}
}
}//Test.cs
namespace Hiding
{
class Test
{
static void Main(string[] args)
{
Derived d = new Derived();
Base b = d; d.Method1();
d.Method2(); b.Method1();
b.Method2();
}
}
}
看运行结果