We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a2d1a commit 198fff3Copy full SHA for 198fff3
src/standard_input_ii/aggregating_data.md
@@ -55,11 +55,6 @@ you can use a class.[^dto]
55
class Person {
56
String firstName;
57
String lastName;
58
-
59
- Person(String firstName, String lastName) {
60
- this.firstName = firstName;
61
- this.lastName = lastName;
62
- }
63
}
64
65
Person askForName() {
@@ -87,7 +82,10 @@ Person askForName() {
87
82
88
83
} while (true);
89
84
90
- return new Person(firstName, lastName);
85
+ var person = new Person();
86
+ person.firstName = firstName;
+ person.lastName = lastName;
+ return person;
91
92
93
void main() {
0 commit comments