Test

by Nounoob on March 11th, 2010
No notes
Syntax: C++
Show lines - Hide lines - Show in textbox - Download
class Forme
{
    virtual bool collide(Forme* f)
    {
        f.collide(this);
    }
};
 
class Sphere : public Forme
{
    bool collide(Sphere* f)
    {
       //Code
    }
 
    bool collide(Cube* f)
    {
       //Code
    }
}
 
class Cube: public Forme
{
    bool collide(Sphere* f)
    {
       //Code
    }
 
    bool collide(Cube* f)
    {
       //Code
    }
}

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS