رکوردها (Records) - جاوا 16+ public record Person(String name, int age) {} Person p = new Person("علی", 30); System.out.println(p.name());
0
0
0
11
0