Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
merged two list entries in the java section
Tags: Mobile edit Mobile app edit iOS app edit
m linking
Line 571:
</syntaxhighlight>
 
Alternatively, the [[named parametersparameter]]s can be specified using the colon-pair syntax in Perl 6:
<syntaxhighlight lang="perl6">
my $p0 = Person.new( :first-name<Sam>, :last-name<Ashe>, :age(42) );