Programming - Interfaces
PostPosted:Tue Sep 06, 2005 11:27 pm
I'm writing my first ever interfaces (in the C#/C++ sense - in C++, completely pure virtual base classes) for my project, and I have to say I'm digging them. Seems that interface-based programming is a bit more work at the start, but it lets me do things I could never do without them. I'd always known polymorphism, and specifically, not having to know an object's final derived type when it's used, just the interfaces it supports, is a very powerful technique, but it's something else entirely to see it in action. I won't go into detail because it would take forever, but I'm able to implement a generic framework for the game that absolutely wouldn't be possible without them.
I'm becoming a pretty big Bjarne Strousoup fan...
I'm becoming a pretty big Bjarne Strousoup fan...