Question: Exercise 6 : Apply Inheritance to Exercise 5 using C# Task: Create a new class called Player that inherits from the existing Employee class and
Exercise : Apply Inheritance to Exercise using C#
Task: Create a new class called Player that inherits from the existing Employee class and refactor the code accordingly. Simulate games of onbasketball flag football, and soccer.
Exercise : Original Prompt Basketball Game
Objective: Design classes to simulate a onbasketball game on a xCartesian plane court. The court includes two baskets, a referee, and a basketball.
Requirements:
Court size: x
Basket size: x
Ball and players: x
Methods to implement:
List players and their positionsList playersdistances from the referee, sorted in ascending orderMethod to check if a basket has been scored
Demonstration: Create a game with arbitrary data to showcase functionality.
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
