Class methods, like ordinary methods, are inherited. In particular, the
newly defined new
class method is inherited by all subclasses of
Food
, such as the Vegetable class:
Workspace Food new. Vegetable new Transcript Creating a new class instance: a Food Creating a new class instance: a Vegetable