Skip to content

Instantly share code, notes, and snippets.

@httpmurilo
Created January 23, 2022 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save httpmurilo/6f0a9d67f64667c0c9b876a05779de8b to your computer and use it in GitHub Desktop.
Save httpmurilo/6f0a9d67f64667c0c9b876a05779de8b to your computer and use it in GitHub Desktop.
Singleton final
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