当前位置:网站首页>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() {
}
}
边栏推荐
- The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list
- Important knowledge points of redis
- ruoyi接口权限校验
- Request weather interface format, automation
- The difference between CONDA and pip
- Various usages of MySQL backup database to create table select and how many days are left
- VMware virtual machine C disk expansion
- [LeetCode]404. 左叶子之和
- Reinstalling the system displays "setup is applying system settings" stationary
- 机械观和系统观的科学思维方式各有什么特点和作用
猜你喜欢
Golang operation redis: write and read hash type data
ssh链接远程服务器 及 远程图形化界面的本地显示
golang操作redis:写入、读取hash类型数据
2022年华东师范大学计科考研复试机试题-详细题解
论文笔记 VSALM 文献综述《A Comprehensive Survey of Visual SLAM Algorithms》
Summary of UI module design and practical application of agent mode
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
Scroll view specifies the starting position of the scrolling element
卡特兰数(Catalan)的应用场景
JMeter performance automation test
随机推荐
golang操作redis:写入、读取hash类型数据
Summary of UI module design and practical application of agent mode
Asynchronous programming: async/await in asp Net
How to scan when Canon c3120l is a network shared printer
机械观和系统观的科学思维方式各有什么特点和作用
The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list
Example of joint use of ros+pytoch (semantic segmentation)
[untitled]
The win7 computer can't start. Turn the CPU fan and stop it
Shell conditional statement
opencv
UNI-APP中条件注释 实现跨段兼容、导航跳转 和 传参、组件创建使用和生命周期函数
每日刷题记录 (十一)
[classes and objects] explain classes and objects in simple terms
Climb movie paradise 2021 hot
opencv
[LeetCode]404. 左叶子之和
Ruoyi interface permission verification
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
MATLAB如何修改默认设置