Question: Class Person (4 marks): Open the Java file Person.java that is provided. Later on, you must use this class in Reservation and Hotel classes. Complete

Class Person (4 marks): Open the Java file Person.java that is provided. Later on, you must use this class in Reservation and Hotel classes. Complete this Java class using the following specifications: Every person has first and last names. (1 mark) A constructor, which gets two parameters, first and last names, and initializes the corresponding instance variables. (1 mark) Override the toString method, such that it returns first and last names with one space in between. (2 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
