Draw an object-oriented class diagram, including traditional unary, binary and ternary relationships, as well as generalization and aggregation relationships as needed, to represent the following Central Zoo environment. Include all of the attributes and operations listed in the description.
Central Zoo has three kinds of enclosures: cages, fenced areas, and water tanks. Each enclosure, regardless of which kind it is, has a unique enclosure number and a location. In addition, each cage has an area (in square feet or square meters), a height, and a type, each fenced area has an area and a fence height, each water tank has a temperature. Each water tank is composed of two parts, a tank (the zoo keeps track of the volume of the tank) and a pump (the zoo keeps track of the number of amperes of the pump.)
Each animal that lives in a cage in the zoo has a unique animal number, a species, name, gender, and weight. Each cage can have several animals living in it or it can be empty. An animal can live in only one cage.
There is an operation that calculates the next cleaning date of each enclosure, but this calculation is different for cages, fenced areas, and water tanks.
Correct Answer:
Verified
Q18: A potential exposure that can introduce errors
Q19: The relational data model does not directly
Q20: An object is an advanced data structure
Q21: Generalization/specialization is a relationship that recognizes that
Q22: Methods or operations cannot be modified when
Q24: An object/relational database might include a table
Q25: Aggregation is a special case of the
Q26: An object/relational DBMS is an OODBMS with
Q27: When an application program has to update
Q28: A video clip is an example of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents