摘要:
1.接口 弱类型语言允许将一块内存看做多种类型。比如直接将整型变量与字符变量相加。C and C++ 是静态语言,也是弱类型语言;Perl and PHP 是动态语言,但也是弱类型语言。 强类型语言在没有强制类型转化前,不允许两种不同类型的变量相互操作。Java、C# 和 Python 等都是强类型 阅读全文
摘要:
1.重写 如下面的Run方法,在Car中被重写。 namespace TestClass { class Program { static void Main(string[] args) { Car car = new Car("初始车"); Console.ReadKey(); } } /// 阅读全文