For example, I have a class with a static field that can store my data, but I'm not sure if this is correct for OOP principles. What is the best way to do this?
class Data {
static String token;
static DoctorProfile doctor;
static UserProfile userProfile;
}
Aucun commentaire:
Enregistrer un commentaire