java - Where is the correct place to put find functions? -
i'm working on project split several smaller java projects. have account object stores user credentials, etc. want create function return characters account has, e.g. findcharacters(); should put that, inside api or in account class itself?
it better place function inside account class related functionality account object.
public class account { //properties go here int findcharacters() { //method logic goes here } }
Comments
Post a Comment