当前位置:网站首页>Freshman summer internship Day5_ one
Freshman summer internship Day5_ one
2022-07-23 05:36:00 【CHY resounding】
Catalog
static Or c++ equally , All class objects share
static It's also the same as c++ equally :
Learn next Java Inheritance :( I'll fill in these details for half a day )
5.IDEA Debug memory and memory analysis tools :
6. Member variables with duplicate names
10. Shortcut key alt+insert Or download Ptg Plug-ins can simplify your hand typing process
I learned a new thing earlier :![]()
And output alignment

Random numbers

This is to not point to the same space ,new One came out

append Anything you add can be converted into characters

static Or c++ equally , All class objects share




Tool class :
Privatization is to prevent others from creating tool objects , Because it doesn't make sense . Generally defined as static class methods , Easy to use
PS: This is the basic framework of a business

static It's also the same as c++ equally :
Because statics have little to do with objects , It is shared by objects of the same class , Of course not This.
Then explain from memory :

Static things load as the class loads , There is static content before there is no object .
Now let's re recognize main:

Learn next Java Inheritance :( I'll fill in these details for half a day )
Thought and c++ 10 Fen is the same , Except that multiple inheritance is not supported

Here's a practical one , And what we often ignore in our daily study , But the actual development pays special attention to , That is, the subclass of the parent class should belong to a category , In line with the actual situation .
as well as , Another concept is called indirect parent ![]()
Subclasses can only access parent private
Add a label below
1.
2.![]()
3.
I'm mentioning , The object here is not used , Become garbage , The virtual machine will reclaim memory by itself
4.
![]()
Here the virtual method definition and c++ Dissimilarity !
5.IDEA Debug memory and memory analysis tools :
First of all. :
then Get the address in the terminal :

Then input jhsdb hsdb, get Jdk Built in memory analysis , Then click the first option below

Then enter the process just obtained id

See what you want to see next , But the specific representative data 、 Format , Need to check online slowly , It is another key point of study
jiu

Quite powerful , But I can't fully understand it for the time being
6. Member variables with duplicate names

7. rewrite :


matters needing attention :

5 and 6 essentially :![]()
8.


9.this,super summary
PS: Print out the structure of the object in memory :



From memory :
here this In the method show Is a local variable
and this() This is the usage of
Because there must be a hidden or displayed one in other constructors of this class super 了 . Of course this() Must be on the first line
10. Shortcut key alt+insert Or download Ptg Plug-ins can simplify your hand typing process
11. polymorphic


![]()

11. A technical :
Judge a Is it right? dog type
jdk12 New features in the future :


Let's start like this
边栏推荐
- C语言实现三子棋
- [Err] 1064 - You have an error in your SQL syntax;
- leetcode-241.为运算表达式设计优先级
- 练习+浮点型在内存中存储
- Leetcode-583. Deleting two strings
- 大一暑假实习day7总结
- Ctfshow VIP limited and free topics CSDN creative punch in
- MRS +Apache Zeppelin,让数据分析更便捷
- Introduction to C language arrays, functions, operators, and keywords
- 代码随想录笔记_数组_209长度最小的子数组
猜你喜欢

Exercise + floating point stored in memory

摄像机漫游

Principle and implementation of Ping

Debug No3 多张纹理叠加

大一暑假实习day5_3

Get computer hardware information

Leetcode-932. beautiful array

"Dial" out the number on the number of digits - a variety of ideas to achieve reverse output of a four digit number

Detailed explanation of advanced data types in C language

Leetcode - the best time to buy and sell stocks, including handling charges
随机推荐
正则表达式的应用及分组
大一暑假实习day5_2
Unity摄像机画面制作全景图片|截图制作全景图
VR专业的面试题你都见过没?相信我绝对有用
Watermelon book machine learning notes -- naive Bayes
C语言数组,函数,操作符,关键字入门
C语言进阶数据类型详解
我的第一篇博客 | 记录编程之路的初心与目标
leetcode-646. 最长数对链
CreateProcess output redirection
Some topics such as ctfhub web information disclosure WP CSDN creation punch in
Leetcode - 494. Objectifs et
超简单的倒计时代码编写
Swap parity bits in binary bits
unity中3dUI或者模型始終面向攝像機,跟隨攝像機視角旋轉丨視角跟隨丨固定視角
Code random notes_ Array_ 209 subarray with the smallest length
Form validation and regular expressions (I)
Leetcode-384. clutter array
Code random notes_ Linked list_ 203 remove linked list elements
打印字符串数组中的所有词——指针与字符串的故事