当前位置:网站首页>Interview: the difference between interface and abstract class - concise summary
Interview: the difference between interface and abstract class - concise summary
2022-07-19 02:34:00 【Tamarind_】
Interface :
1. Constant only , No variables .
2. from public、static、final The modified , Assignment must be initialized .
3. Only abstract methods , And is public、abstract Modified abstract method .
4. There is no way to construct .
abstract class :
1. You can have variables , You can also have constants .
2. There can be abstract methods , There can be implementations .
3. An abstract class can only inherit one class , It can be inherited by multiple classes .
4. There's a way to structure .
边栏推荐
- jmeter连接数据库的方法
- 《Visual C#从入门到精通》个人学习整理
- [antv G2] how to solve the memory leak caused by G2
- 【Unity编辑器扩展】Unity资产预处理和后处理图片自动转Sprite2D
- Summary of tree and heap knowledge points
- Network layer protocol and IP packet format (detailed)
- Next array - circular section
- 【Unity编辑器扩展】Unity发布资源到商店流程Unity Asset Store Publish
- Server knowledge (details)
- GoReplay
猜你喜欢

Signal and system experiment

Decentralized edge rendering meta universe protocol cadeus was invited to attend the cbaia 2022 summit to enable more Web3 application scenarios with technology

Visual studio 2019-qt debugging

网络层传输协议(详解)

攻防世界----easytornado笔记

How to configure multiple SSH keys for novices (easy to understand hand-in-hand teaching)

怎么将软件的快捷方式添加到鼠标右键的列表中

Network layer protocol and IP packet format (detailed)

SSTI模板注入

Static routing (detailed)
随机推荐
STL -- set container
剑指 Offer 53 - I. 在排序数组中查找数字 I
性能测试实施规范指南
接口(Collection/Map)- 各接口的实现与对比
元宇宙公链Caduceus项目详解(一):Caduceus Metaverse Protocol的项目理念及技术框架
【Unity编辑器扩展】Unity发布资源到商店流程Unity Asset Store Publish
Network layer transmission protocol (detailed)
STL -- string container
[tools] unity screen drawing line, unity screen drawing Hsj drawing tool
如果猎人用枪打兔子
Logic vulnerability - login verification code security
jmeter连接数据库的方法
转载:SQL注入常见绕过
BeanShell script gets the current time
flask模板注入
Unity notes 1
Visual studio 2019-qt debugging
网络层协议和IP数据包的格式(详解)
【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti
性能之流量回放