W3cubDocs

/Crystal 0.31

Classes and methods

A class is a blueprint from which individual objects are created. As an example, consider a Person class. You declare a class like this:

class Person
end

Class names, and indeed all type names, begin with a capital letter in Crystal.

To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/syntax_and_semantics/classes_and_methods.html