Question

Which king class properly represents the relationship "King has a best friend who is a Soldier"

  • class King extends Soldier { }
  • class King implements Soldier { }
  • class King { private BestFriend Soldier; }
  • class King { private Soldier bestFriend; } (Correct Answer)

Answer is "class King { private Soldier bestFriend; }"

2 Answer and explanations

You don't need to login to post your comment
154
Aditi

need help, explain answer

152
Muskaan

please post an explanation

Post your answer

You don't need to login to post answer






Ask Question


Note: Options are optional, you can leave them blank