I have an java class like below. So I want to make a object of that class with lesser variables. 

```
public class ABC{
private String firstName;
private String lastName;
public String getFirstName() {
    return firstName;
}

public void setFirstName(String firstName) {
    this.firstName = firstName;
}

public String getLastName() {
    return lastName;
}
}

```

So I want to make a object containing firstName only. Can I achieve this?? Or is there any way around as I need to create object with same or different number of variables.