✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class flat {
private int floor_number;
private int r; // кількість кімнат
public int getR () {
return r;
}
public int getFloorNumber () {
return floor_number;
}
}
(Java)