class Test {
var count = 0
func increase() {
count += 1
}
func increase(by n: Int) {
count += n
}
func reset() {
count = 0
}
func show() {
print(count)
}
}
let obj = Test()
obj.show()
obj.increase()
obj.show()
obj.increase(by: 3)
obj.show()
obj.reset()
obj.show()
/*
run:
0
1
4
0
*/