当前位置:网站首页>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() {
}
}
边栏推荐
- 远端rostopic的本地rviz调用及显示
- 有意思的鼠標指針交互探究
- Basic teaching of crawler code
- SQL implementation merges multiple rows of records into one row
- Hands on redis master-slave replication, sentinel master-slave switching, cluster sharding
- Docker advanced learning (container data volume, MySQL installation, dockerfile)
- Journal quotidien des questions (11)
- Printer related problem record
- Print time Hahahahahaha
- Opencv mouse and keyboard events
猜你喜欢

Push box games C #
![[classes and objects] explain classes and objects in simple terms](/img/41/250457530880dfe3728432c2ccd50b.png)
[classes and objects] explain classes and objects in simple terms

100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners

VMware virtual machine C disk expansion

SQL implementation merges multiple rows of records into one row

Operation principle of lua on C: Foundation

scroll-view指定滚动元素的起始位置

Asynchronous programming: async/await in asp Net

23 design models

Dbnet: real time scene text detection with differentiable binarization
随机推荐
2022-06-23 VGMP-OSPF-域间安全策略-NAT策略(更新中)
golang操作redis:写入、读取hash类型数据
[Code] if (list! = null & list. Size() > 0) optimization, set empty judgment implementation method
Journal quotidien des questions (11)
2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
方差迭代公式推导
Scripy learning
Personally design a highly concurrent seckill system
Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样
【C#/VB.NET】 将PDF转为SVG/Image, SVG/Image转PDF
Various usages of MySQL backup database to create table select and how many days are left
23 design models
Summary of UI module design and practical application of agent mode
[classes and objects] explain classes and objects in simple terms
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
Printer related problem record
【code】偶尔取值、判空、查表、验证等
Asynchronous programming: async/await in asp Net
【无标题】8 简易版通讯录
error C2017: 非法的转义序列