Structs ¶. Instead of defining a type with class you can do so with struct : struct Point property x, y def initialize(@x : Int32, @y : Int32) end end.
確定! 回上一頁