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:

  1. class Person
  2. end

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