Is there any way of using Records with inheritance?
The JEP states this: Restrictions on records Records cannot extend any other class, and cannot declare instance fields other than the private final fields which correspond to components of the state description. Any other fields which are declared must be static. These restrictions ensure that the state description alone defines the representation. The Java 17 … Read more