Access private methods variables in another java class in same package. -
this question has answer here:
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
Post a Comment