mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Add escript guide docs for classes * Add ClassInstanceRef to objref docs * Use objref.dot to generate svg
20 lines
343 B
Text
20 lines
343 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 )
|
|
super();
|
|
Print( "C constructor" );
|
|
endfunction
|
|
endclass
|
|
|
|
var c := C(); // Output: A constructor, B constructor, C constructor
|