- property
Class with property with default value
examples/classes/class_with_default_property.cr
class Person property name : String def initialize @name = "Default name" end end prs = Person.new p! prs # prs # => #<Person:0x7fa3aaae2eb0> puts prs.name # Default name prs.name = "Joe" puts prs.name # joe