I have a Class RequestHelper where I store methods for http-Requests to initiate Requests from different Activities.
E.g. there is this one:
class RequestHelper {
static void loginUser(String email, String password, final Context activityContext) {
// do request stuff
}
}
Is there any difference if I put a public in front of it like in the following example or is it just nonsense to do so?
class RequestHelper {
public static void loginUser(String email, String password, final Context activityContext) {
// do request stuff
}
}
Both versions do work as planned, so is there any difference at all?