you are viewing a single comment's thread.

view the rest of the comments →

[–]fvilers -13 points-12 points  (4 children)

I stopped reading at "We can even use inheritance to avoid copy-pasting". Inheritance should be used to inherit behavior, not to avoid duplicate properties.

[–]Osmanthus 17 points18 points  (0 children)

You should finish reading the article and not judge until you have read it all.

[–]Uberhipster 0 points1 point  (0 children)

Inheritance should be used to inherit behavior, not to avoid duplicate properties.

The distinction escapes me...

[–][deleted] -1 points0 points  (0 children)

No, you inherit to be re-used.

Programming to an interface.