Short Class Definition


There is a short syntax for defining classes, commonly used to introduce more informative type names for existing classes.




The same thing can be written using the keyword
type instead:




The short class definition is the only way to introduce a "class" name for an array type:




A short class definition is in most cases just a shorter syntax for defining a class that could just as well be defined using the standard inheritance syntax:




Which is just the same as this:




Writing array types is done this short way: