Final answer:
The question involves creating a 'Person' class in a programming language with two constructors and getter methods for the 'firstName' and 'lastName' fields.
Step-by-step explanation:
The student is asking how to create a class in an object-oriented programming language such as Java. The class should be called Person and contain two private data fields for the person's first and last names. The following code snippet demonstrates such a class with a blank constructor and an overloaded constructor, as well as getter methods:
public class Person {
private String firstName;
private String lastName;
// Blank constructor
public Person() {
this.firstName = "";
this.lastName = "";
}
// Overloaded constructor
public Person(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
// Get methods
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
}