mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Format testsuite escript * Format testsuite pol * Update docs Switch "attributes" to "members" to better align with Escript terms. * Add core-changes, breaking-changes
21 lines
368 B
Text
21 lines
368 B
Text
class A()
|
|
function A( this )
|
|
Print( "A constructor" );
|
|
endfunction
|
|
endclass
|
|
|
|
class B()
|
|
function B( this )
|
|
Print( "B constructor" );
|
|
endfunction
|
|
endclass
|
|
|
|
class C( A, B )
|
|
function C( this )
|
|
@B::B( this );
|
|
@A::A( this );
|
|
Print( "C constructor" );
|
|
endfunction
|
|
endclass
|
|
|
|
var c := C(); // Output: B constructor, A constructor, C constructor
|