You shouldn’t reach through an object to invoke a method. That tightly couples the classes which getJ and getG (for instance) return.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: