Java keywords behind abstract, static and read-only notation

When you turn a UML class diagram into Java, several pieces of notation each map to a single Java keyword. A class whose name is set in italics cannot be instantiated directly, so it becomes a class declared with the keyword . An attribute or operation shown underlined belongs to the class itself rather than to each object, so it becomes a member declared with the keyword . An attribute followed by the property {readOnly}, whose value cannot change once it is set, becomes a field declared with the keyword .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More UML Class Diagrams Questions: