Object-oriented data-model
Not what you're looking for?
Draw an object-oriented data-model, with all appropriate notation, to represent the following situation. In a particular region there are a number of gardens. One attribute of GARDEN is its LOCATION. A method must be included in GARDEN to calculate its acreage (CalculateAcreage). Each garden is a collection (or assembly) of plants. Attributes of PLANT include NAME and DATE PLANTED. There must be a method to calculate the age of a plant (CalculateAge). At the present time, there are two subtypes of plants: FLOWER, and VEGETABLE. This list is not exhaustive, since other subtypes may be added at a later date. COLOR is an attribute of FLOWER, while YIELD is an attribute of VEGETABLE. There are two (and only two) subtypes of FLOWER: ANNUAL and PERENNIAL. DATE TRANSPLANTED is an attribute of PERENNIAL.
Purchase this Solution
Solution Summary
The expert examines object-oriented data-model.
Purchase this Solution
Free BrainMass Quizzes
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Javscript Basics
Quiz on basics of javascript programming language.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.