Create a person class to represent a person. (You maycall the class personType .
ID: 3619226 • Letter: C
Question
- Create a person class to represent a person. (You maycall the class personType.) To simplify things, have theclass have 2 variable members for the person's first andlast name. Include 2 constructors. One should be a defaultconstructor and the other should be one with parameters. Includerespective functions for:
- setting the name,
- getting the name, and
- printing the name on the screen.
Have your main program call these functions to demonstrate how theywork.
Explain how you can replace both constructors with one constructorby using a single constructor with default parameters.