Swiftでクラスを定義するサンプル
サンプルコード
class Example {
func show() {
print("this is a demo!")
}
func out(rs: String) {
print(rs)
}
}
let tt = Example()
tt.show()
tt.out(rs: "tokyo")
Coding Changes the World
サンプルコード
class Example {
func show() {
print("this is a demo!")
}
func out(rs: String) {
print(rs)
}
}
let tt = Example()
tt.show()
tt.out(rs: "tokyo")