摘要:
6.虚拟和非虚拟函数下面是一个非虚拟函数using System;namespace Test2 {class Plane { public double TopSpeed() {return 300.0D; }}class Jet : Plane { public double TopSpeed() { return 900.0D;}}class Airport {static void Main(string[] args) { Plane plane = new Jet(); Console.WriteLine("planes top speed: {0}",plan 阅读全文
posted @ 2013-09-25 13:36
倾杯天涯
阅读(1039)
评论(0)
推荐(0)