Question: Create a UML diagram for the following .java program. /** * NFLPlayer have its properties * and methods for setters and getters * @author your

Create a UML diagram for the following .java program.

/** * NFLPlayer have its properties * and methods for setters and getters * @author your name * */ public class NFLPlayer {

//properties of NFLPlayer private int id; private String name; private String teamName; private int score; //default constructor public NFLPlayer() {} //constructor with param //that initializes the all properties public NFLPlayer(int id, String name, String teamName, int score) { this.id = id; this.name = name; this.teamName = teamName; this.score = score; }

//accesser and mutators for properties public int getId() { return id; }

public void setId(int id) { this.id = id; }

public String getName() { return name; }

public void setName(String name) { this.name = name; }

public String getTeamName() { return teamName; }

public void setTeamName(String teamName) { this.teamName = teamName; }

public int getScore() { return score; }

public void setScore(int score) { this.score = score; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!