#did i create the classes based on the UML diagram correctly.

1 messages · Page 1 of 1 (latest)

bright hinge
#

My task is to o implement Java classes to represent the sports personality prize winning information with respect to this data set. i havent parsed the data set,but i have created the java classes for the three classes from the uml diagram, i just need someone to clarify if its correct or not. Here is the uml class diagram and below is my java code. in the link. https://pastebin.com/6yEctFXv

boreal swiftBOT
#

<@&987246399047479336> please have a look, thanks.

boreal swiftBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

mint shale
#

It doesnt look like you included the getters for both sportsteam and sportsperson in the UML diagram, so just strictly following the UML you've added additional stuff that didn't need to be added. With that said though, from a practical standpoint what you've done is fine because otherwise there would be no way of accessing those object attributes.

bright hinge
mint shale
bright hinge
# mint shale Look back at the UML diagram and look at the `SportsPerson` and `SportsTeam` and...

You are required to implement Java classes to represent the sports personality prize winning information with respect to this data set. The program should parse the data file and create and store a collection of objects that represent the necessary domain entities. Figure 3 provides a partial UML class representation of the classes that you will need to implement to represent the sports personality prize information. The class model indicates data members for the SportsAward class and illustrates the accessor (i.e., getter) methods that map to its respective data members, and a toString() method. It is left to you to determine the data types (and what accessor methods are required) for the other two classes, and how the objects should be initialised. It says i should use getters

mint shale