Å·±¦ÓéÀÖ

 

 (?)
Quotes are added by the Å·±¦ÓéÀÖ community and are not verified by Å·±¦ÓéÀÖ.
Steve Klabnik

“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.”

Steve Klabnik, The Rust Programming Language
Read more quotes from Steve Klabnik


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

The Rust Programming Language The Rust Programming Language by Steve Klabnik
1,680 ratings, average rating, 178 reviews

Browse By Tag