
“Inheritance has recently fallen out of favor as a programming design solution in many programming languages because it’s often at risk of sharing more code than necessary. Subclasses shouldn’t always share all characteristics of their parent class but will do so with inheritance. This can make a program’s design less flexible. It also introduces the possibility of calling methods on subclasses that don’t make sense or that cause errors because the methods don’t apply to the subclass. In addition, some languages will only allow a subclass to inherit from one class, further restricting the flexibility of a program’s design.
For these reasons, Rust takes a different approach, using trait objects instead of inheritance.”
―
The Rust Programming Language
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
1 like
All Members Who Liked This Quote
This Quote Is From
Browse By Tag
- love (99680)
- life (78331)
- inspirational (74547)
- humor (44491)
- philosophy (30362)
- inspirational-quotes (27656)
- god (26633)
- truth (24262)
- wisdom (24082)
- romance (23813)
- poetry (22795)
- life-lessons (21189)
- death (20353)
- quotes (19226)
- happiness (18850)
- hope (18156)
- faith (18127)
- inspiration (16953)
- spirituality (15429)
- religion (15188)
- motivational (15078)
- writing (14922)
- relationships (14878)
- life-quotes (14690)
- love-quotes (14482)
- success (13622)
- time (12676)
- motivation (12532)
- science (11906)
- motivational-quotes (11634)