Home /
Expert Answers /
Computer Science /
11-levels-of-friendship-v2-0-this-challenge-implements-levels-of-friendship-in-java-dasses-close-pa855
(Solved): 11. Levels of Friendship v2.0 This challenge implements levels of friendship in Java dasses. close ...
11. Levels of Friendship v2.0 This challenge implements levels of friendship in Java dasses. close friend. Friend: A person with whom one has a close bond. Best Frienc: A persolis closest friend. As the levels of friendship increase, you get to know more about the person. On the basis of knowledge you have about a person: Best Friend \( > \) Friend > Acquaintance Implement these levels in terms of 3 Java classes : Class Acquaintance: - Has an attribute: "name" (variable of type string. - Constructor: Acquaintance(string name). - Has a method public void getstatus, which prints: "Tnamel is just an acqualntance.- class Eriend: - Class Friend Inherits class Acquaintance. - Constructori Friend(String name, String homeTown). - Has attribute "homeTown' (variable of type string. - Mas a method public vold getstatus, which prints "iname) is a friend and he is from thomeTowns.". Class Pesteriand - Class Bestrriendinherits class Friend.
- Has a method public vold getstatus, which prints Tnamel is a friend and he is from thomeTown).". Class Best:riend - Class BestFriendinherits class Friend. - Constructort BestFriend(ftring name, String homeTown, String favoritesongs. - Has attribute "favoritesons" (variable of type string. - Has a method public vold getstatus, which prints Thamej is my best friend. He is from fhomeTownJ and his favorite song is ifavoritesong.". Noter You do not have to worry about input handling, that part of the program is was already written for you.