静态和抽象类之间的区别? [英] Difference between static and abstract class??

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

问题描述

静态类和抽象类的区别是什么?

what is the Difference between static and abstract class??

推荐答案

静态类只有静态方法并且无法实例化。

A static class only has static methods and cannot be instantiated.

抽象类至少有一个抽象方法,只能用作另一个类的基类 - 它不能直接实例化。

An abstract class has at least one abstract method and can only be used as a base class for another class - it cannot be instantiated directly.


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

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