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

php - Hide output during test execution -

java - Drawing vector images on PDF with PDFBox -

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