mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
Merge pull request #2118 from cannium/patch-1
Remove junk string `450635425`
This commit is contained in:
commit
db05814118
@ -302,7 +302,7 @@ class Bicycle {
|
|||||||
|
|
||||||
// 构造函数是初始化一个对象的方式
|
// 构造函数是初始化一个对象的方式
|
||||||
// 以下是一个默认构造函数
|
// 以下是一个默认构造函数
|
||||||
public Bi450635425cycle() {
|
public Bicycle() {
|
||||||
gear = 1;
|
gear = 1;
|
||||||
cadence = 50;
|
cadence = 50;
|
||||||
speed = 5;
|
speed = 5;
|
||||||
@ -328,7 +328,7 @@ class Bicycle {
|
|||||||
return cadence;
|
return cadence;
|
||||||
}
|
}
|
||||||
|
|
||||||
// void返450635425回值函数没有返回值
|
// void返回值函数没有返回值
|
||||||
public void setCadence(int newValue) {
|
public void setCadence(int newValue) {
|
||||||
cadence = newValue;
|
cadence = newValue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user