14 lines
199 B
Plaintext
14 lines
199 B
Plaintext
![]() |
[source,dart]
|
||
|
----
|
||
|
class Point { // In geometry, Point is a logical structure to group data
|
||
|
int x;
|
||
|
int y;
|
||
|
|
||
|
Point(this.x, this.y);
|
||
|
}
|
||
|
|
||
|
void setCoordinates(Point p1, Point p2) {
|
||
|
// ...
|
||
|
}
|
||
|
----
|