Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 276 Bytes

classes_and_methods.md

File metadata and controls

10 lines (7 loc) · 276 Bytes

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.