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
automatically get file from ftp server using .bat and put onto my computer
Too many startup Progams
How can I get a server to wait for a batch file to run before it executes the UPS shutdown when on battery
Dell Pe1800 Server -Stop Error 7B
Cisco 857 Bridge Mode Config
Printer do not works....Zebra 170XiII
Linux SSH with 2 NIC
Email Attachment
How to Redirect for SharePoint Maintenance
Cisco ASA 5505 Clientless SSL VPN unable to access any internal resource after login