Question: During this lab assignment, you will: Explore the Blue) environment. Work with a Friend class and Friend object. Work with the constructor. Work with the

During this lab assignment, you will: Explore the Blue) environment. Work with a Friend class and Friend object. Work with the constructor. Work with the methods. Task: 1. Implement the class Friend with the following characteristics: The fields are: Data type String String int int Name name phonenumber age since Year 2. The constructor (public Friend())has the following characteristics: Parameters: String [Name, String fPhone, int fAge ,int since. All fields are initialized within the constructor. 3. Implement a method called YearsOfFriendship to receive the current year as an input and return the number of years since friendship. 4. Implement a method called check which checks if the friend in his 20s or 30s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
