漸漸可以感受到爲什麼叫面向對象編程了。
定義了一個對象之後
ARR a;
a.out()
a.zzz()
對象非常清晰,都是對a的操作,以對象爲中心了,如果是C語言,你還得把對象當參數傳進函數
out(a)這樣子。
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"typ
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragr
{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null