当前位置:网站首页>Abstract methods and interfaces
Abstract methods and interfaces
2022-06-12 05:00:00 【なんでもないゃ】
Abstract methods are methods that have no concrete implementation , There is no method body , use abstract modification ;
An abstract class is a class that cannot be instantiated , That is, you cannot create objects ;
There can be abstract methods in an abstract class , There can also be non abstract methods , A class with abstract methods must be an abstract class ;
After an abstract class is inherited, it must override all abstract methods , The actual meaning of abstract classes is not to create objects but to be inherited , Abstract classes are mandatory and normative for subclasses ;
Interface : More abstract than abstract classes , The methods in the interface are all abstract methods , Properties are constants , use private static final modification , It can be omitted ; stay Java8 After that, static methods are supported in the interface 、 Method of default permission ,Java9 Then support private methods ;
Interface supports multiple inheritance , Classes can only be inherited singly , Class can implement multiple interfaces , Interface makes up for the defect that a class can only inherit ;

Inner classes are divided into ordinary inner classes , Static inner class , Local inner classes , Anonymous inner class ;
边栏推荐
- Interview must ask: summary of ten classic sorting algorithms
- Differences between in and not in, exists and not exists in SQL and performance analysis
- LabVIEW about TDMS and binary storage speeds
- SQL injection upload one sentence Trojan horse (turn)
- 加速訓練之並行化 tf.data.Dataset 生成器
- Difference between thread and task
- Normalized vegetation index (NDVI) data, NPP data, GPP data, evapotranspiration data, vegetation type data, ecosystem type distribution data
- 2022 electrician (elementary) operation certificate examination question bank and online simulation examination
- Ecosystem type distribution data, land use data, vegetation type distribution and nature reserve distribution data
- PostgreSQL age XID maintenance prevents the database from being read-only
猜你喜欢

Microsoft announces that it will discontinue support for older versions of visual studio

When the build When gradle does not load the dependencies, and you need to add a download path in libraries, the path in gradle is not a direct downloadable path

Main business objects of pupanvr record (5)

How to deploy PostgreSQL as a docker container

L1-066 cat is liquid (5 points)

kali下安装pycharm并创建快捷访问

Day17 array features array boundary array application traversal array multidimensional array creation and traversal arrays operation array bubble sort

InnoDB data storage structure – MySQL

National land use data of 30m precision secondary classification

Bearpi IOT lighting LED
随机推荐
File contains (regardless of suffix) Apache log remote file contains PHP encapsulated pseudo protocol:
Minigui3 runs on Hisilicon hi3520d/hi3531 platform
Day18 creation and restoration of sparse array
Design of a simple embedded web service application
[backtracking based on bit operation] queen n problem 2
Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days
Some optimization methods for UI Application of Qt5 on Hisilicon security platform
How to deploy dolphin scheduler 1.3.1 on cdh5
JS controls the display and hiding of tags through class
WiFi smartconfig implementation
2022“高考记忆” 已打包完成,请查收!
Pupanvr hardware and software board side development environment configuration (4)
Spatial distribution data of national multi-year average precipitation 1951-2021, temperature distribution data, evapotranspiration data, evaporation data, solar radiation data, sunshine data and wind
Ray. Tune visual adjustment super parameter tensorflow 2.0
How to count the total length of roads in the region and draw data histogram
Three. JS import model demo analysis (with notes)
Pupanvr- an open source embedded NVR system (1)
22-2-28 there are many things to do at work today, ETH analysis
Differences between in and not in, exists and not exists in SQL and performance analysis
Operation of simulated examination platform for 2022 safety officer-b certificate examination questions