bounded type parameters に関係して bounded abstract types
がある2
bounded abstract types は、 のサブタイプとして
を生成する問題の解を与える。以下の例、
ObjectType Person is
type ;
...
var lunch: F;
method eat(food: F);
end;
ObjectType Vegetarian is
type ;
...
var lunch: F;
method eat(food: F);
end;