Язык программирования Crystal

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 every type name, begin with a capital letter in Crystal.