Microsoft
Software
Hardware
Network
Question : Class Diagram
Hello can someone spot the errors in my class diagram.
class Sprite
{
float xLocation, yLocation;
static int spriteCount;
public:
Sprite();
Sprite(float x,float y);
~Sprite();
virtual void collide(Sprite s);
private:
int spriteType;
};
class MoveblSprite : public Sprite
{
public:
void Move(float x, float y);
void Move(float time);
void collide(Sprite b);
protected:
Vec2D velocity;
};
class FixedSprite : public Sprite
{
public:
void collide(Sprite b);
};
class Vec2D
{
public:
Vec2D(float x,float y);
protected:
float x;
float y;
};
Attachments:
UML.jpg
(73 KB)
(File Type Details)
UML
Answer : Class Diagram
>> Was the red line under spritecount : int in the Sprite class explained in the first post? I can't tell ;p
It's not a standard notation, but the software used to generate that diagram might indeed by using underline to indicate static members.
Random Solutions
Trasnpose rows and columns in SQL
size of data returned by a query
How to remove User Name and Password from Login screen
MS Word Page Numbering - Duplicate number for different signature pages
Access Search Form
Exchange 2007 Server - Adding new DC (2008 or 2008 R2)?
Dropdown box background-color not working only on Safari on MAC
Which is Better, FreeAndNil(SL) or SL.Clear?
Excel 2007 VBA Intellisense not working
Persistent error on windows2000 server