![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Status: Junior Member Join Date: Jul 2009 Posts: 1
![]() | it's pretty sweet. I swear. we are friends, I would never lie to you. you can take my word for it. oh, don't be that way! I'll be your best friend if you go to Searchles and use it every day for the rest of your life. I'm not asking much here, just a little love. (warning: this is a shameless promotion) oh yeah, it's located here: www.searchles.com |
| | |
| | #2 (permalink) |
| Status: Junior Member Join Date: Jul 2009 Posts: 1
![]() | Just add the following table and change it to your values class Shape { public:// interface to users of Shapes virtual void draw() const; virtual void rotate(int degrees); // ... protected:// common data (for implementers of Shapes) Point center; Color col; // ... }; class Circle : public Shape { public: void draw() const; void rotate(int) { } // ... protected: int radius; // ... }; class Triangle : public Shape { public: void draw() const; void rotate(int); // ... protected: Point a, b, c; // ... }; |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |