当前位置:网站首页>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
边栏推荐
- 学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
- 爬虫代码基础教学
- JMeter linked database
- 这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意
- 100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners
- Create your own deep learning environment with CONDA
- 剖析虚幻渲染体系(16)- 图形驱动的秘密
- SSH link remote server and local display of remote graphical interface
- opencv鼠标键盘事件
- After the Chrome browser is updated, lodop printing cannot be called
猜你喜欢

ssh链接远程服务器 及 远程图形化界面的本地显示

The dynamic analysis and calculation of expressions are really delicious for flee

HMS core helps baby bus show high-quality children's digital content to global developers

23 design models

2022-06-23 VGMP-OSPF-域间安全策略-NAT策略(更新中)

JMeter performance automation test

Yolov2 learning and summary

Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样

“我为开源打榜狂”第一周榜单公布,160位开发者上榜

ruoyi接口权限校验
随机推荐
How does the insurance company check hypertension?
【开源项目推荐-ColugoMum】这群本科生基于国产深度学习框架PaddlePadddle开源了零售行业解决方案
Page text acquisition
In depth learning
Judge whether the date time exceeds 31 days
[leetcode] day93 - intersection of two arrays II
Learning notes -- principles and comparison of k-d tree and IKD tree
【无标题】8 简易版通讯录
opencv
How to migrate or replicate VMware virtual machine systems
Interface test weather API
[C /vb.net] convert PDF to svg/image, svg/image to PDF
Support vector machine for machine learning
Yolov1 learning notes
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library
golang操作redis:写入、读取kv数据
Code management tools
Reinstalling the system displays "setup is applying system settings" stationary
The dynamic analysis and calculation of expressions are really delicious for flee