Question: QUESTION 3 : Implement class Passenger that represents an airplane passenger as follows. The class should encapsulate information about the first and last names of
QUESTION : Implement class Passenger that represents an airplane passenger as follows.
The class should encapsulate information about the first and last names of the passenger, his date of birth and his nationality, and his ID
The class should contain a parameterized constructor and appropriate getters and setters.
The class should be able to print to the standard output its details.
Test your class with a simple driver that defines two different passengers and prints their details. Use separate implementations with different headers to store the class declaration.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
