test
来源:互联网 发布:淘宝的数字暗语大全 编辑:程序博客网 时间:2024/04/30 09:55
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace ConsoleAppl
- {
- public class A
- {
- public virtual void Fun1(int i)
- {
- Console.WriteLine(i);
- }
- public void Fun2(A a)
- {
- a.Fun1(1);
- Fun1(5);
- }
- }
- //典型的基类重写实例
- public class B : A
- {
- public override void Fun1(int i)
- {
- base.Fun1(i + 1);
- }
- public static void Main()
- {
- B b = new B();
- A a = new A();
- a.Fun2(b);
- b.Fun2(a);
- Console.ReadKey();
- }
- }
- //class Program
- //{
- // static void Main(string[] args)
- // {
- // // Length 属性用于获取数组的长度。
- // // 注意,Length 是只读属性:
- // //Console.WriteLine("Number of command line parameters = {0}", args.Length);
- // //for (int i = 0; i < args.Length; i++)
- // //{
- // // Console.WriteLine("Arg[{0}] = [{1}]", i, args[i]);
- // //}
- // Console.ReadKey();
- // }
- //}
- }
- test
- test
- test
- test
- test
- test
- test
- Test
- test
- Test
- test
- test
- test
- test
- test
- test
- test
- Test
- 1.1.3 GIS应用框架
- 21.5 UpdatePanelAnimation局部刷新动画控件(征服ASP.NET 2.0 Ajax——Web开发技术详解)
- JGAP使用说明
- 21.6 小结(征服ASP.NET 2.0 Ajax——Web开发技术详解 )
- Posix多线程编程学习笔记(二)—线程属性(1)
- test
- 创建定制的泛型类--泛型Queue多线程读写文档--的泛型方法
- 提高oracle表分析速度
- 输出硬盘文件,提供下载
- Posix多线程编程学习笔记(二)—线程属性(2)
- C64X DSP EDMA/QDMA小结
- PortHidDemo_Vista
- WinCVS 与 SourceForge.net 进行ssh连接
- GIS开源软件推荐-UDIG