#include <oxstd.h>
#include "lines.ox"

class Angle : Line                // Line is the base class
{
    Angle();                                 // constructor
    lineto(const x, const y);     // draw dash, move cursor
};
Angle::Angle()
{
    Line(0);                              // starts at zero
}
Angle::lineto(const ax, const ay)
{
    Line::lineto(ax, y);                 // horizontal line
    Line::lineto(ax, ay);                  // vertical line
    print("is angle to ", ax, " ", ay, "\n");
    moveto(ax, ay);
}

main()
{
    decl lineobj;

    lineobj = new Angle();                 // create object and
                                         // set cursor to (0,0)
    lineobj->lineto(10, 10);          // draw angle to (10, 10)
    lineobj->Angle::lineto(10, 10);                // same call

    delete lineobj;      // delete object from memory when done
}

