结构体与类的区别

This commit is contained in:
2022-01-06 23:03:08 +08:00
parent 2162005745
commit 28a8532422
13 changed files with 160 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import UIKit
//: ###
/*:
-
-
-
*/
class Point {
var x: Int = 0
var y: Int = 0
}
//
let p1 = Point()