Ah, now we see where C++ really shines; but can it have multiple class constructors? Say I want to have a LINE class, and declare it (and I don't yet know how classes work.. I'm learning it tonight):
PHP Code:myline Line = ***; //Is this where the constructor goes?
// Anyway, can I have multiple constructors? Such as:
myline Line = (x1, y1)-(x2, y2) // define a line by two points
myline Line = (x1, y1, m) // define a line by one point and the slope




):
Reply With Quote