1.1-Introductie-Programmeren

Create some Person instances

Difficulty: Filled Outlined Outlined

Create a Person class with the attributes “firstName” (String), “lastName” (String) and “city” (String) and create three instances of this class based on random data (or your personal info: your choice!).

Next, create a method printPerson(Person somePerson) that prints out the details of this person as mentioned in the example.

Example

Example