Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

inheritance.

Name: Anonymous 2009-08-05 20:01

Am I the only person who feels that inheritance in high-level languages is rather unnecessary? I understand the idea behind it, letting you stack classes up in neat little hierarchies and inheriting common functions from higher classes, but I just feel that in the end what it does is too fiddly, and could be done far quicker by simply copying the code straight across, or better yet just making another class which it's would-be children aren't tied to.

Are there any people who make use of inheritance regularly, and think it has it's uses?

Name: Anonymous 2009-08-05 20:45

>>3
This is mostly accurate. There are perfectly legitimate places to use it, especially in game development.

But a PRNG inheriting from some overarching PRNG class is pointless.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List