当前位置:网站首页>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
边栏推荐
猜你喜欢
VMware virtual machine C disk expansion
DBNet:具有可微分二值化的实时场景文本检测
熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
Support vector machine for machine learning
JMeter linked database
Docker advanced learning (container data volume, MySQL installation, dockerfile)
剖析虚幻渲染体系(16)- 图形驱动的秘密
New knowledge! The virtual machine network card causes your DNS resolution to slow down
2022 CISP-PTE(三)命令执行
每日刷題記錄 (十一)
随机推荐
The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list
Personally design a highly concurrent seckill system
【无标题】5 自用历程
Opencv mouse and keyboard events
Derivation of variance iteration formula
Mysql
Yolov1 learning notes
ruoyi接口权限校验
pytorch练习小项目
每日刷题记录 (十一)
(翻译)异步编程:Async/Await在ASP.NET中的介绍
ROS+Pytorch的联合使用示例(语义分割)
保险公司怎么查高血压?
Naive Bayes in machine learning
2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
Asynchronous programming: async/await in asp Net
POI dealing with Excel learning
[Code] if (list! = null & list. Size() > 0) optimization, set empty judgment implementation method
【LeetCode】Day93-两个数组的交集 II
UTC时间、GMT时间、CST时间