merlinofchaos: (0)
merlinofchaos ([personal profile] merlinofchaos) wrote 2003-05-17 08:25 pm (UTC)

There's a third possibility: go way beyond what the professor expects and have fun with it. Use templates. Use abstract classes. Avoid multiple inheritance if possible. Use the STL and namespaces and operator overloading.

Multiple inheritance is evil. I rarely use it anyway, though sometimes it's unavoidable.

I admit that I rarely use templates, because they are compiler magic and don't always behave quite the way I expect them too.

Abstract classes, on the other hand, are a real backbone in my C++ programming. It makes things come out much cleaner, IMO.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting