115k views
24 votes
Pick one of the following scenarios and

a. Model using at least 5 classes: one parent, two children, and two grandchildren of one of the child classes.
b. Provide at least one field and one method that compellingly differentiates each class from the others.
c. Do not include constructors, getters, or setters in your description.

Scenarios - lots of them spring to mind, but I don't want the list to be too long. In this way, you can compare your ideas with those of other students, and I encourage to consider what other students have posted, you are also encouraged to make suggestions of other's postings and make additional postings updating your own ideas in light of the suggestions by others.

1. An airplane
2. A train
3. An e-commerce company (eg, Amazon)
4. A city government
5. An airline (aspects of an entire company)
6. A government organization (eg, EPA, Defense)

1 Answer

7 votes

Answer:

Follows are the solution to this question:

Step-by-step explanation:

Please find the complete question and diagram in the attached file.

Following are the scenario of the training:

In the given UML diagram, it used to increases the student's generalizability, and the type of vehicle categories, which includes their data components at the top one would be the parent or less are kids' classes which have parent class properties.

Pick one of the following scenarios and a. Model using at least 5 classes: one parent-example-1
Pick one of the following scenarios and a. Model using at least 5 classes: one parent-example-2
User Avalerio
by
6.4k points