Question: Add a constructor to the Name class that accepts a first name, middle initial, and last name as parameters and initializes the Name objects state
Add a constructor to the Name class that accepts a first name, middle initial, and last name as parameters and initializes the Name object’s state with those values.
Data from Problem 7
Create a class called Name that represents a person’s name. The class should have fields representing the person’s first name, last name, and middle initial. (Your class should contain only fields for now.)
Step by Step Solution
3.44 Rating (170 Votes )
There are 3 Steps involved in it
Constructor for Name class A Name object represents a name s... View full answer
Get step-by-step solutions from verified subject matter experts
