The goal of these discussions is to give you more practice with the concepts bef
The goal of these discussions is to give you more practice with the concepts before you have to apply them in a real program. The discussions are a collaborative learning effort – you can work with others to come up with the answers, read your classmates’ posts to get feedback, and figure out the right answers as a class!
Directions
Read the prompt below and make a post containing your response. After you’ve made your first post you will be able to see everyone else’s posts. Use this opportunity to see what everyone else has come up with. You can continue to post, reply, and collaborate until you are satisfied with your answers. If you choose to work in a group, each person must still make their own individual posts.
Before the assignment’s due date, please reply to at least one other person’s post. The details for your reply to this week’s discussion are described in the prompt below. You’re more than welcome to make more than one reply and have discussions!
Click the three dots in the top right of this discussion assignment and select “Show Rubric” to see how points are awarded for this assignment.
Prompt
For your post, create a UML diagram for a single class of your choosing. Your class must contain at least one variable and at least 3 methods. You only need to create the specification for a single class and the variables methods inside of it – you don’t need to add any other classes or class relationships yet. Make sure you use the correct UML syntax when creating your class.
You may draw your diagram by hand and post a picture of it, or you may use any digital drawing software of your choice. You are allowed to use a program that is made specifically for UML diagram creation such as LucidChart (there is a free version available). If you are uncertain whether or not you are allowed to use any given software for this assignment, please send me a message with the name of the software you would like to use and I will see if it is acceptable.
You can post your class specification as a picture by selecting “Insert > Image > Upload Image” in the toolbar above the reply window.
Reply
For your reply this week, pick one of your classmates’ diagrams and add another class to it with some kind of relationship to the first class. Your new class must have at least one variable and at least one method, and you must show the relationship between the original class and your newly added class.
You are allowed to make a single change to the original class to fit the relationship you are going for. For example, if the original post contained a class called “Car”, you can design a class called “Tire” and modify the original car class to contain an array of Tire objects.
You are allowed to add another class to someone’s reply that already has more than one class in it, but the class that you add must still have at least one relationship to one of the existing classes. You may not add on to your own post.
You can choose any relationship between the two classes as long as it makes logical sense and is shown correctly. All relationships must show multiplicity values and descriptions for the two sides of the connections.