* A full first version of the prose. Makes use of Dart example, of course. * Tweaks to Dart example code; manually tested in Dartium under checked mode. closes #1142
13 lines
164 B
Dart
13 lines
164 B
Dart
// #docregion
|
|
class Hero {
|
|
String name;
|
|
String power;
|
|
|
|
Hero clone() {
|
|
return new Hero()
|
|
..name = name
|
|
..power = power;
|
|
}
|
|
}
|
|
// #enddocregion
|