These are flashcards an notes made by students on topics like 'datatype', 'operations' and 'datatypes', originating from:

- Michael Jesse Chonoles
ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
  • This + 400k other summaries, also in PDF!
  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo

Study Cards on datatype, operations, datatypes

Having just these few primitive types and enumerations to use is very limited.

UML offers up the ability to build additional types based on the primitives. These look like classes.

What are they?
DataTypes
Report
What is the keyword for Datatypes?
<<dataType>>
Report
In Fig. 6.7, we show two dataTypes that we have constructed.

What does the " + "  means?

We also used the “+,” public visibility, to indicate that the properties and operations of the dataType are visible outside of the dataType.
Report
What are the operations in the figure?
We have also added some operations to the Date datatType, to support adding days to the current date, and for comparing dates.

The first operation addToDate(days:Integer) doesn’t need a return type, because it updates the Date dataType value in place.
Report
To the right and in Fig. 6.8, we use the formal format.


{year > 1910}.

{month ≥ 1 and month ≤ 12}

{day in 1 … 31}


The “..” is the standard way the UML represents an INTERVAL, from low to high. 
Report
  • Higher grades + faster learning
  • Don't study anything twice
  • 100% sure, 100% understanding
Discover Study Smart