• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Head First OO Book- Class Diagram Question

 
Author
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got a copy of the new head first OO book...

Question on Class Diagram in particular Interfaces and representation.

In UML 2.0 reference books Interface methods/attributes are not italics

in particular in Learning 2.0 and other UML references in basically says.."..unlike abstract classes, an interface does not have to show that its operations are not implemented, so it does not have to use italics."...

But in Head First OO (p. 224 and others) and in other Java programming books...Interfaces are italicized in UML..

Questions.

1. Why the incosistencies?
2. Which is correct- italic or non italics...or is it optional and if so why not say so- instead say one way or other...


I thought this question was answersd a while back but there seems to be inconsistent in notation..jc
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To me, "does not have to" means exactly that it's optional. It implies "but it may".
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The The Unified Modeling Language Reference Manual 2e (2004) states under "font usage": "Italics are used to indicate an abstract class, attribute, or operation". It then proceeds to use the �interface� stereotype for interfaces and only use a normal font.

This is kind of a contradiction because interface operations are abstract.

In the absense of font styles you can use property lists i.e.:
abstractOperation {abstract}
instead of
abstractOperation
[ December 14, 2006: Message edited by: Peer Reynders ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic