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

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -