Object oriented

abstract

A class or method that refuses to be complete until a child finishes it.

Syntax

define abstract class <Name>;
    define abstract func <name>() returning <type>;

How she behaves

  • You cannot newobj an abstract class. That would be unfinished furniture.
  • A child must override the abstract methods.
  • You may still type a variable as the abstract class and fill it with a child: define Shape shape is newobj Square(4.0);

Example

define abstract class Shape;

    public:
    define abstract func Area() returning decimal;

end;

See also