Access private methods variables in another java class in same package. -


i new java. can please tell me best way access private method variables in class. thank u

private variables private reason- you're not supposed able access them directly. many classes have getter methods though allow access private variables not change them. if need access private variables in program, need rethink design.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -