PlayerPrefsController

Rick makes the fields const because they’ll never change, and also makes the methods static which makes sense because it’s a class function not an object function. However so far the class PlayerPrefsController seems to be stateless - so shouldn’t the class be made static instead and then all member fields and methods declared static as well?

1 Like

Hi Jamie,

You are right. We could make the entire class including the content static because we do not need any objects from that class, and we do not have any members or non-static methods.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms