Published 2 months ago

Abstract Classes and Modules

A quick look at abstract classes and modules. Abstract modules and classes are similar in purpose to interfaces in Java. They help ensure that classes implement all the methods they are supposed to implement, as well as allowing sharing common functionality and restricting by the module and class type.

https://crystal-lang.org/docs/syntax_and_semantics/virtual_and_abstract_types.html

Comments