摘要:
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 阅读全文