Given the following Person class:
public class Person
{
private String firstName;
private String lastName;
public Person
(
String firstName, String lastName
)
{
this.firstName
=
firstName;
this.lastName
=
lastName;
}
public String getFirstName
(
)
{
return firstName;
}
public String getLastName
(
)
{
return lastName;
}
}
Which Student class would correctly inherit from Person and have a correct constructor defined?
Not the question you are looking for? Ask here!
Enter question by text
Enter question by image
Unlock Smarter Learning with AskSia Super!
Join Super, our all-in-one AI solution that can greatly improve your learning efficiency.