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


main()
{
    decl lineobj;

	println("totalno of lines=", Line::getcLines());
	
    lineobj = new Line(0);                 // create object and
                                         // set cursor to (0,0)
    lineobj->lineto(10, 10);           // draw line to (10, 10)
    lineobj->Line::lineto(10, 10);                 // same call
//	lineobj::lineto(10, 10);   // error, lineobj is not a class
			                       // but an object, so need ->
//	Line::lineto(10, 10);// error: not a static function member

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

