当前位置:网站首页>Abstract learning
Abstract learning
2022-07-03 06:46:00 【Xiao Xie Bu touch Yu】
abstract Study
package com.oop.Demo07;
//abstract abstract class : class extends: Single inheritance ( Interfaces can inherit more
public abstract class Action {
// constraint
//abstract , Abstract method Only the method name There is no way to achieve
public abstract void doSomething();
//1. You can't new This abstract class It can only be implemented by subclasses : constraint
//2. Ordinary methods can be written in abstract classes
//3. Abstract methods must be in abstract classes
}
===================================================
package com.oop.Demo07;
public class A extends Action {
@Override
public void doSomething() {
}
}
边栏推荐
- Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
- 2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution
- 这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意
- The most classic 100 sentences in the world famous works
- Reinstalling the system displays "setup is applying system settings" stationary
- error C2017: 非法的转义序列
- 堆排序和优先队列
- 【类和对象】深入浅出类和对象
- Judge whether the date time exceeds 31 days
- Daily question brushing record (11)
猜你喜欢

【类和对象】深入浅出类和对象

Golang operation redis: write and read kV data

利用C#实现Pdf转图片

Selenium ide installation recording and local project maintenance

Scroll view specifies the starting position of the scrolling element

每日刷題記錄 (十一)

10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”

卡特兰数(Catalan)的应用场景

New knowledge! The virtual machine network card causes your DNS resolution to slow down

JMeter linked database
随机推荐
Push box games C #
Reinstalling the system displays "setup is applying system settings" stationary
“我为开源打榜狂”第一周榜单公布,160位开发者上榜
23 design models
[untitled] 5 self use history
Example of joint use of ros+pytoch (semantic segmentation)
Chapter 8. MapReduce production experience
How to migrate or replicate VMware virtual machine systems
【无标题】8 简易版通讯录
ssh链接远程服务器 及 远程图形化界面的本地显示
[set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)
Summary of remote connection of MySQL
vmware虚拟机C盘扩容
Understand software testing
New knowledge! The virtual machine network card causes your DNS resolution to slow down
Shell conditional statement
2022年华东师范大学计科考研复试机试题-详细题解
A letter to graduating college students
The win7 computer can't start. Turn the CPU fan and stop it
Summary of the design and implementation of the weapon system similar to the paladin of vitality