当前位置:网站首页>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
边栏推荐
- Realize PDF to picture conversion with C #
- How matlab modifies default settings
- 有意思的鼠標指針交互探究
- 学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
- Use @data in Lombok to simplify entity class code
- Application scenarios of Catalan number
- [LeetCode]404. Sum of left leaves
- SSH link remote server and local display of remote graphical interface
- Introduction to software engineering
- [untitled] 8 simplified address book
猜你喜欢

每日刷题记录 (十一)

IE browser flash back, automatically open edge browser

Important knowledge points of redis

Une exploration intéressante de l'interaction souris - pointeur

Asynchronous programming: async/await in asp Net

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

golang操作redis:写入、读取kv数据

The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list
![[classes and objects] explain classes and objects in simple terms](/img/41/250457530880dfe3728432c2ccd50b.png)
[classes and objects] explain classes and objects in simple terms

Read blog type data from mysql, Chinese garbled code - solved
随机推荐
VMware virtual machine C disk expansion
2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
opencv
Yolov2 learning and summary
Install VM tools
[untitled] 8 simplified address book
[5g NR] UE registration process
YOLOV1学习笔记
Support vector machine for machine learning
Summary of the design and implementation of the weapon system similar to the paladin of vitality
Naive Bayes in machine learning
Pytorch exercise items
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
The win7 computer can't start. Turn the CPU fan and stop it
【无标题】
The most classic 100 sentences in the world famous works
Cannot get value with @value, null
Oracle Database Introduction
The difference between CONDA and pip
2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution