Overloading Overloading We can define a become_older method that accepts a number indicating the years to grow: class Person getter : age def initialize ( @name...
Overloading Overloading We can define a become_older method that accepts a number indicating the years to grow: class Person getter : age def initialize ( @nam...
Overloading Overloading We can define a become_older method that accepts a number indicating the years to grow: class Person getter : age def initialize ( @nam...
Type inference With type restrictions Without type restrictions 1. Assigning a literal value 2. Assigning the result of invoking the class method new 3. Assigning a variable th...
Type inference With type restrictions Without type restrictions 1. Assigning a literal value 2. Assigning the result of invoking the class method new 3. Assigning a variable th...
Modules extend self Module Type Checking Modules Modules serve two purposes: as namespaces for defining other types, methods and constants as partial types that can be mixed...
Modules extend self Module Type Checking Modules Modules serve two purposes: as namespaces for defining other types, methods and constants as partial types that can be mixed...