January 2020
Intermediate to advanced
532 pages
13h 31m
English
Behavior subtyping is sometimes called interface inheritance. In order to avoid confusion with the overloaded word inheritance, we will avoid using the term interface inheritance here. Behavior subtyping says that a subtype only inherits behaviors from the supertype.
Julia supports behavior subtyping. Every data type inherits functions that are defined for its supertype. Let's try a quick and fun exercise in the Julia REPL:

Here, an abstract type, Vehicle, is defined with a subtype of Car. We have also defined a move function ...
Read now
Unlock full access