You can do the same as with your "plain Java class". public record Zoo(List<Animal> animals) { /* * The canonical constructor copies the ...
確定! 回上一頁