May 14, 2022
Given the record
public record Period (int aLength) { }
and the code fragment
var period = new Period(60);
Which code below is valid in the scope of the variable period? Choose one.
A. int i = period.aLength;
B. int i = period.aLength();
C. int i = period.getaLength();
D. int i = period.getALength();
·ꓭ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ ·uoᴉsnʅɔuoꓛ