There is an advantage to CG's method, but it's not necessary to be THAT OO.

by (Login rpgfan3233)

You could just as easily use multiple read() functions; the idea behind using a DataHandler class is for encapsulation. Technically speaking, multiple read() functions would be better if you're avoiding OOP. However, I'd wait to see a reply from ComputerGhost (CG) since it's his code. Perhaps there's more of an advantage to his code than I'm currently aware of.

I must admit that his idea is rather well designed... I guess I've been programming in C for so long that I forgot about too many C++ features... :)

Posted on Jul 26, 2011, 6:52 AM

Respond to this message   

Return to Index