OOPS抽象类 [英] OOPS Abstract Classes

查看:85
本文介绍了OOPS抽象类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OOPS C#Concepts中 抽象类和纯抽象 类的区别是什么?

What is The difference between abstract class and pure abstract class in OOPS C# Concepts?

推荐答案

虽然我在这个问题上看到了很多关于内容很少的讨论,但关键的区别似乎是抽象类至少包含一个虚方法,而纯抽象类只有虚拟方法。为什么这个问题超出了我的意思......两个课程都没有实例化,所以谁在乎呢? : - )
Although I see a lot of discussion with little content when I Google on this issue, the key distinction seems to be that an abstract class contains at least one virtual method, and a pure abstract class has nothing but virtual methods. Why this would matter is beyond me... Neither class can be instantiated, so who cares? :-)


虚方法。或者抽象方法你在谈论它是否包含所有抽象方法然后我们不去接口。
virtual methods.or abstract methods u r talking about and if it contains all abstract methods then y we r not going for Interfaces.


这篇关于OOPS抽象类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆