https://wiki.beyondunreal.com/w/index.php?action=history&feed=atom Extends clause - Revision history 2017-11-18T01:50:31Z Revision history for this page on the wiki MediaWiki 1.25.1 https://wiki.beyondunreal.com/Extends_clause?diff=42998&oldid=prev 00zX: grammar fix 2010-04-22T02:28:58Z <p>grammar fix</p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:28, 22 April 2010</td> </tr><tr><td colspan="2" class="diff-lineno" id="L1" >Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The '''extends''' clause is a mandatory part of [[class declarations]] (except for class [[Object]]) and an optional part of [[Interface declarations]], [[state declarations]] and [[struct declarations]]. It defines that the declared item inherits members from the extended item. In case of classes and interfaces, the declared item is called subclass/subinterface or child class/interface of the extended item, while the extended class or interface is called superclass/superinterface or parent class/interface. Similar terminology could be used for extended states and structs, but is relatively uncommon there.</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The '''extends''' clause is a mandatory part of [[class declarations]] (except for class [[Object]]) and an optional part of [[Interface declarations]], [[state declarations]] and [[struct declarations]]. It defines that the declared item inherits members from the extended item. In case of classes and interfaces, the declared item is called subclass/subinterface or child class/interface of the extended item, while the extended class or interface is called superclass/superinterface or parent class/interface. Similar terminology could be used for extended states and structs, but is relatively uncommon there.</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>In [[Unreal Engine 1]], the '''extends''' keyword can also be replaced by the keyword '''expands'''. That keyword is actually used by default when creating new classes via [[UnrealEd]] and very early versions of the Unreal Engine <del class="diffchange diffchange-inline">don't even </del>recognize the keyword '''extends''' <del class="diffchange diffchange-inline">yet</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>In [[Unreal Engine 1]], the '''extends''' keyword can also be replaced by the keyword '''expands'''. That keyword is actually used by default when creating new classes via [[UnrealEd]] and very early versions of the Unreal Engine <ins class="diffchange diffchange-inline">will not </ins>recognize the keyword '''extends'''.</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Syntax==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==Syntax==</div></td></tr> </table> 00zX https://wiki.beyondunreal.com/Extends_clause?diff=39760&oldid=prev Wormbo: Created page with 'The '''extends''' clause is a mandatory part of class declarations (except for class Object) and an optional part of Interface declarations, state declarations an…' 2009-11-07T08:49:39Z <p>Created page with &#039;The &#039;&#039;&#039;extends&#039;&#039;&#039; clause is a mandatory part of <a href="/Class_declarations" class="mw-redirect" title="Class declarations">class declarations</a> (except for class <a href="/Object" title="Object">Object</a>) and an optional part of <a href="/Interface_declarations" class="mw-redirect" title="Interface declarations">Interface declarations</a>, <a href="/State_declarations" class="mw-redirect" title="State declarations">state declarations</a> an…&#039;</p> <p><b>New page</b></p><div>The '''extends''' clause is a mandatory part of [[class declarations]] (except for class [[Object]]) and an optional part of [[Interface declarations]], [[state declarations]] and [[struct declarations]]. It defines that the declared item inherits members from the extended item. In case of classes and interfaces, the declared item is called subclass/subinterface or child class/interface of the extended item, while the extended class or interface is called superclass/superinterface or parent class/interface. Similar terminology could be used for extended states and structs, but is relatively uncommon there.<br /> <br /> In [[Unreal Engine 1]], the '''extends''' keyword can also be replaced by the keyword '''expands'''. That keyword is actually used by default when creating new classes via [[UnrealEd]] and very early versions of the Unreal Engine don't even recognize the keyword '''extends''' yet.<br /> <br /> ==Syntax==<br /> The most common use of an extends clause is a class declaration:<br /> class ''ClassName'' extends ''ParentClass'';<br /> The extends clause of a class declaration can be followed by a [[within clause]] and optional class modifiers.<br /> <br /> Other usages of the extends clause are rare, but one example available in all Unreal Engine games is the ''Plane'' struct:<br /> &lt;uscript&gt;<br /> struct Plane extends Vector<br /> {<br /> var() config float W;<br /> };<br /> &lt;/uscript&gt;<br /> This declaration inherits the X, Y and Z components of the [[Vector]] struct and adds the W component.<br /> <br /> {{navbox unrealscript}}</div> Wormbo