Tag: 面向对象

Go语言之面向对象

Jackey Golang 1,703 次浏览 ,
面向对象 [codesyntax lang="c"] // main package main import ( "fmt" ) /*func compare(a, b int) bool { return a < b }*/ type Point struct { px float32 py float32 } func (point *Point) setXY(...
Go