当前位置:网站首页>Class and object summary
Class and object summary
2022-07-03 06:44:00 【Xiao Xie Bu touch Yu】
Class and object summary
1. Classes and objects
Class is a template : abstract . Object is a concrete instance
2. Method
Definition 、 call
3. Object application
Reference type : Basic types (8) int boolean short long float double char byte
4. attribute : Member variables
Default initialization :
Numbers :0 0.0
char: u0000
boolean: false
quote : null
Modifier Attribute types Property name = Property value
5. Object creation and use
- You have to use new Keywords create objects , Constructors Person person = new Person()
- Object properties : dog.name
- Object method : dog.shout()
6. class :
Static properties : attribute
Dynamic behavior : Method
边栏推荐
- YOLOV2学习与总结
- [open source project recommendation colugomum] this group of undergraduates open source retail industry solutions based on the domestic deep learning framework paddlepadddle
- The most classic 100 sentences in the world famous works
- Yolov2 learning and summary
- Heap sort and priority queue
- HMS core helps baby bus show high-quality children's digital content to global developers
- Pdf files can only print out the first page
- 2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
- Push box games C #
- Summary of the design and implementation of the weapon system similar to the paladin of vitality
猜你喜欢
Create your own deep learning environment with CONDA
【5G NR】UE注册流程
100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners
10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”
Install VM tools
IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
Summary of remote connection of MySQL
[classes and objects] explain classes and objects in simple terms
Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
Daily question brushing record (11)
随机推荐
MATLAB如何修改默认设置
The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list
【无标题】
ruoyi接口权限校验
Print time Hahahahahaha
SSH link remote server and local display of remote graphical interface
Important knowledge points of redis
How to migrate or replicate VMware virtual machine systems
[classes and objects] explain classes and objects in simple terms
[open source project recommendation colugomum] this group of undergraduates open source retail industry solutions based on the domestic deep learning framework paddlepadddle
Daily question brushing record (11)
Mysql5.7 group by error
保险公司怎么查高血压?
Shell conditional statement
A letter to graduating college students
Mysql
[Code] if (list! = null & list. Size() > 0) optimization, set empty judgment implementation method
100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners
[LeetCode]404. 左叶子之和
远端rostopic的本地rviz调用及显示