当前位置:网站首页>Freshman summer internship Day5_ three
Freshman summer internship Day5_ three
2022-07-23 05:36:00 【CHY resounding】
1. Anonymous inner class :
This picture is very good ! You have to remember


This is for interfaces , The following figure is for inheritance :

adopt open in---explore--- Open bytecode file , Discover that anonymous inner classes , The computer itself will give a name :

Then decompile :

This corresponds to this :

Application scenarios :

Here anonymous inner classes are standard polymorphic applications .
There is also such usage :

summary :
\
Then there are some Gui Things about , This will be put into the next
Anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class anonymous inner class
public class GameJFrame extends JFrame {
//JFrame Subclasses of are also interface forms
// Regulations :GameFrame This interface is the main interface of the game , The logic related to the game is written here
public GameJFrame() {
// Width
this.setSize(605, 682);
// title
this.setTitle(" jigsaw puzzle ");
// Set the page to top idea
this.setAlwaysOnTop(true);
// Center the page
this.setLocationRelativeTo(null);
// Let him show
this.setVisible(true);
}
边栏推荐
猜你喜欢
随机推荐
打印字符串数组中的所有词——指针与字符串的故事
Leetcode-415. string addition
Idea usage guide
Solve the master-slave replication problem of MySQL under CentOS
The heavy performance of karma in the four training of Li Fan
如何用C语言实现无头单向非循环链表Single List ?
VRTK功能教学(二):Unity3DVRTK手柄瞬移和UI交互射线切换功能丨3D模型射线交互切换丨直线和曲线的切换
C语言基础 - 字符串/字符数组最易错考点
Vs2019 project packaging exe tutorial
Apple logout account revoke token
Greatest common divisor and least common multiple
Do you want to have a robot that can make cartoon avatars in three steps?
Debug No1 总结出现bug的常见解决方案
链表的基本操作
Fundamentals of C language - the most error prone test point of string / character array
Form validation and regular expression (2)
MySQL
抽象类
顶点缓冲区与着色器 (The Cherno + LeranOpenGL)笔记
今日作业博客









