[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 2chのread.cgiへ]
Update time : 05/09 12:02 / Filesize : 164 KB / Number-of Response : 790
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

go



472 名前:デフォルトの名無しさん mailto:sage [2009/11/13(金) 04:01:47 ]
>>470
ありがとう。
OOPのことはFAQに書いてあったわ。
C++とかとは異なるんだね。

Is Go an object-oriented language?

Yes and no. Although Go has types and methods and allows an object-oriented style of
programming, there is no type hierarchy. The concept of “interface” in Go provides a different
approach that we believe is easy to use and in some ways more general. There are also ways
to embed types in other types to provide something analogous―but not identical―to subclassing.
Moreover, methods in Go are more general than in C++ or Java: they can be defined for any sort
of data, not just structs.

Also, the lack of type hierarchy makes “objects” in Go feel much more lightweight than in
languages such as C++ or Java.






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<164KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef