Hello,
I want to create a Shape class and some subclasses such as Rectangle, Circle
etc. However for the Shape Class, I want to have a list of points (using a
vector) and also I want it so that the Shape Classes forces the subclasses
to implement a Draw() function. I believe what I want is called an
interface right?? If so, how do I go about creating the Shape Class to force
the subclasses to implement the Draw() function??
Thanks for any help!
--
Regards,
Webster
I want to create a Shape class and some subclasses such as Rectangle, Circle
etc. However for the Shape Class, I want to have a list of points (using a
vector) and also I want it so that the Shape Classes forces the subclasses
to implement a Draw() function. I believe what I want is called an
interface right?? If so, how do I go about creating the Shape Class to force
the subclasses to implement the Draw() function??
Thanks for any help!
--
Regards,
Webster
Comment