Methods on RecordsRecords can have methods that allow code to run within the context of a record.record Point { public double x; public double y; method lensqr() -> double { return x * x + y * y; }}Copy