当前位置:网站首页>Scala adapter pattern
Scala adapter pattern
2022-06-25 01:03:00 【Jue Niu thunder plough hot blade】
object Adapter pattern {
trait PlayLOL {
// On a single
def top(): Unit
// In a single
def mid(): Unit
// Output bit , Down the road
def adc(): Unit
// auxiliary
def support(): Unit
// A wild
def jungle(): Unit
// Primary school students
def schoolChild(): Unit
}
class Player extends PlayLOL {
override def top(): Unit = {
}
override def mid(): Unit = {
}
override def adc(): Unit = {
}
override def support(): Unit = {
}
override def jungle(): Unit = {
}
override def schoolChild(): Unit = {
}
}
class GreenHand extends Player {
override def support(): Unit = println("B Key one button , Don't go back to the city if you don't die ")
override def schoolChild(): Unit = println(" You scold me , I'll hang up ")
}
def main(args: Array[String]): Unit = {
val gh = new GreenHand
gh.support()
gh.schoolChild()
}
}
边栏推荐
- EVM简略
- 2022 simulated 100 questions of safety officer-c certificate examination and online simulated examination
- Go语言运算符(第8课下)
- Redis + Lua implementation of distributed interface current limiting
- 2022年全国最新消防设施操作员(高级消防设施操作员)模拟题及答案
- Examination questions and mock examination for safety management personnel of hazardous chemical business units in 2022
- Applet opening traffic master
- A plug-in framework for implementing registration free and login verification with hook technology
- The drawableleft of the custom textview in kotlin is displayed in the center together with the text
- Use of file class filenamefilter & filefilter in io
猜你喜欢

Tiktok wallpaper applet, starlight wallpaper applet version 2.0, upgraded version

Meta & Berkeley proposed a universal multi-scale visual transformer based on pooled self attention mechanism. The classification accuracy in Imagenet reached 88.8%! Open source

Use coordinatorlayout+appbarlayout+collapsingtoolbarlayout to create a collapsed status bar

108 pages (40000 words) proposal for future apartment intelligent design platform project (version 2022)
![[redis realizes seckill service ②] solution to oversold problem](/img/b6/3073def06a56565894c28e49767e3e.png)
[redis realizes seckill service ②] solution to oversold problem

Mobile security tool jar

Add information on the left and add parts on the right of the status bar

51 single chip microcomputer multi computer communication

A small program written this week

ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
随机推荐
adb shell sendevent
Infotnews | is the development of domestic NFT limited to digital collections?
Text editor of QT project practice ---------- episode 11
How to use promise Race() and promise any() ?
If the order has not been paid for 30 minutes, it will be automatically cancelled. How can I achieve this?
Introduction to smart contract security audit delegatecall (2)
Thingsboard - rest API obtains and refreshes tokens
The acceleration of 100 km is only 5.92 seconds, and the willanda high-performance version leads with the strength of high-energy products
Working principle analysis of kubernetes architecture core components
A plug-in framework for implementing registration free and login verification with hook technology
Jar package merging using Apache ant
我想问一下兴业证券怎么开户?通过链接办理股票开户安全吗
The interview questions and answers for the high-frequency software test of Dachang help you prepare for the golden nine silver ten
Go crawler framework -colly actual combat (I)
JMeter socket connection sends data
Source code analysis the problem that fragments cannot be displayed in the custom ViewGroup
百公里加速仅5.92秒,威兰达高性能版以高能产品实力领跑
Tiktok wallpaper applet source code
Usage of ViewModel and livedata in jetpack
Easy to wear - drop down radio