Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An initial objects are defined by the first letter of the first name and the first letter of the last name java classes. 1. Implement
An initial objects are defined by the first letter of the first name and the first letter of the last name java classes. 1. Implement a class called Initials to define the object's initials. 2. Write a constructor that takes two characters and initializes the instance variables of the class. 3. Write a second constructor that takes the first and the last name of a person and create an object of type Initials. You have to use the first constructor to define the second constructor. 4. Write a toString method to display the initials. 5. Write a method that compares two initials, it should return true if the initials are identical otherwise the method should return false. 6. Write a main method to test all the methods defined in the class Initials
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started