Creating setter method for multiple parameters - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Creating setter method for multiple parameters

sue1sue1 Posts: 2Member
I am trying to write setter method for 2 parameters and need help.
My code:

private String fname_box;
private String lname_box;

This is the getter method;

public Rect getPoorQualityBoundingBox() {
return Rect.fromArray(LTRBUtil.unionLTRB(lname_box, fname_box));
}


public Rect getPoorQualityBoundingBox(String fname_box, String lname_box) {

How do I set fname_box and lname_box here?

}
Sign In or Register to comment.