Question: Code in Java: Create a class called Name that represents a person's name. The class should have fields named firstName representing the person's first name,
Code in Java: Create a class called Name that represents a person's name. The class should have fields named firstName representing the person's first name, lastName representing their last name, and middleInitial representing their middle initial a single character Your class should contain only fields for now.
In order for PracticeIt to properly test your class, make sure to use exactly the class name and field names described previously. Also make sure to declare your fields using appropriate types.
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
