








クラス
class
数学では「類」の事。人任意の集合は、任意の同値関係によって類別される。--CUE
オブジェクト指向に於いては、同じ性質を共有するという同値関係によって類別されるオブジェクトの類の事を指すと考えて差し支えないと思う。
思うに、クラスベース・オブジェクト指向では、クラスを定義してそこからオブジェクト(=インスタンス)を作るが、プロトタイプベース・オブジェクト指向では、クラスの代表元を一つ定義し、その複製によってオブジェクトを作る、と言う事ができると思う。このように、数学的には、両者は全く異なるアプローチであると考える事ができる。--CUE
このページを編集 (492 bytes)
 |
以下の 3 ページから参照されています。 |
This page has been visited 4831 times.