![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#特性
当一个好垃圾
这个作者很懒,什么都没留下…
展开
-
C#:简述虚方法和抽象类方法其子类的重写同异点
C#:简述虚方法和抽象类方法其子类的重写同异点 在讲解标题内容之前先简单分析虚方法和抽象类的定义 虚方法(virtual)是有方法体的,它是一个完整的函数,可实现输入,什么时候需要附加virtual来修饰一个方法(在其子类需要使用同种方法即数据类型和返回类型都相同) 如大多入门书籍中介绍的一段代码 是``` namespace virtual { public class Elanguage //...原创 2019-08-09 17:44:18 · 753 阅读 · 0 评论 -
里氏转换LSP
里氏转换 首先DEF:Substitutability is a principle in object-oriented programming stating that, in a computer program, if S is a subtype of T, then objects of type T may be replaced with objects of type S (i....原创 2019-08-10 21:03:50 · 211 阅读 · 0 评论