Created
January 23, 2022 21:11
-
-
Save httpmurilo/6f0a9d67f64667c0c9b876a05779de8b to your computer and use it in GitHub Desktop.
Singleton final
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.murilo.school.model; | |
public class Student { | |
public static final Student INSTANCE = new Student(); | |
private Integer id; | |
private String name; | |
private Integer age; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment