Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

Namespaces

Language: Oxygene, Platform: Echoes, Category: Language
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Echoes/Language/Namespaces

UnitA.pas

namespace NameSpaces.SubNameSpaceA;

interface

uses
  NameSpaces.SubNameSpaceB;

type
  Person = class
  public
    property Name : String;
  end;

  { This class descends from Employee, which is declared in the file UnitB.
    Notice how this class introduces a circular reference with the file UnitB, but that
    doesn't stop Oxygene from compiling the project properly. }
  President = class(Employee)
  public
    property OwnsMercedes : Boolean;
  end;

implementation

end.