ืืืื ืกื ืืงืืฉืืจ ืืื ืืืฉืืืช ืืื Cor ืืืื Moose. ืงืื ืืืืืื:
class Point {
ืืฉ ( $x, $y ) :reader :writer :new :isa(Int);
method clear() {
( $x, $y ) = ( 0, 0 );
}
}
class Point3D isa Point {
ืืฉ $z :reader :writer :new :isa(Int);
method clear() {
$self->next::method;
$z = 0;
}
}
ืืงืืจ: linux.org.ru