Question: Write a toString method for the Name class that returns a String such as John Q. Public. Data from Problem 7 Create a class called
Write a toString method for the Name class that returns a String such as "John Q. Public".
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.39 Rating (168 Votes )
There are 3 Steps involved in it
toString method for Name class Returns a String representat... View full answer
Get step-by-step solutions from verified subject matter experts
