rspec/rules/S107/apex/struct-example.adoc

13 lines
210 B
Plaintext
Raw Normal View History

2023-08-10 16:54:47 +02:00
[source,apex]
----
public class Point { // In geometry, Point is a logical structure to group data
Integer x;
Integer y;
Integer z;
}
void setCoordinates(Point p1, Point p2) {
// ...
}
----