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
How to find SQL 2000 installation settings ?
Domain Admin Exchange account
MakeTable of 6 million records
Lookup table value and assign to text box
0x0000007E(0x C0000005,0X B976BEE9,0X BA4F7154,0X BA4F6E50)
Windows XP + CVS on shared Drive + Configure NetBean + local repository
Count in a Query
How to restrict access to specific folders using variable "UserRoleID"?
Using one keyboard and mouse with two computers at the same time
Can I browse Public Folders via Explorer?