Abstract type: Difference between revisions

Added perl section
No edit summary
(Added perl section)
Line 307:
type ut = u t
type vt = v t</lang>
 
=={{header|Perl}}==
 
<lang perl>package AbstractFoo;
 
use strict;
 
sub frob { die "abstract" }
sub baz { die "abstract" }
 
sub frob_the_baz {
my $self = shift;
$self->frob($self->baz());
}
 
 
1;</lang>
 
=={{header|PHP}}==
Anonymous user