&gt; A class file can inherit from a global class, another file or a subclass inside another file.<p>&gt; # optionally, extend from another file<p>&gt; extends &quot;somefile.gd&quot;<p>&gt; # extend from a subclass in another file<p>&gt; extends &quot;somefile.gd&quot;.Subclass<p>Interesting feature.