Published 3 months ago

Intro to Classes

An introduction to classes. The official Crystal docs also have a lot of wonderful examples:

* https://crystal-lang.org/docs/syntax_and_semantics/classes_and_methods.html
* https://crystal-lang.org/docs/syntax_and_semantics/new,_initialize_and_allocate.html
* https://crystal-lang.org/docs/syntax_and_semantics/methods_and_instance_variables.html
* https://crystal-lang.org/docs/syntax_and_semantics/type_inference.html

Comments