It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things

多态

1、什么是多态

  多态就是同意操作用于不同的对象,可以有不同的解释,产生不同的结果,这就是多态性,多态通过派生类重载基类中的虚方法来实现。

  编译时的多态:是通过重载来时间的。对于非虚的成员来说,系统在编译时,根据传递的参数返回的类型等信息决定做什么操作

  运行时的多态:是指直到系统运行时,才根据实际情况决定实现何种操作。C#中,运行时的多态是通过虚成员实现。

 

未完待续。。。

posted @ 2017-12-30 23:57  Tick_Zhang  阅读(124)  评论(0编辑  收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things