This short article will compare abstract classes and traits as means of inheritance. This is for the beginner Scala programmer who is just getting started with Scala’s inheritance model. If you’re trying to figure out which is the best way to create OO-style type hierarchies and abstract classes seem too similar to traits, this article is for you.

#java #tutorial #scala #object-oriented programming #abstract classes

The Practical Difference Between Abstract Classes and Traits in Scala
1.15 GEEK