• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Static vs Dynamic relationships - need clarification ?

 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An example of static relationship would be:
e.g. "Roger Moore" is a "Person". It is very
unlikely that "Roger Moore" suddenly
transforms to be a "Plant" or "Building" in
future.
An example of dynamic relationship would be:
e.g. "Roger Moore" plays the "role: James Bond"
in a movie. Obviously the "role: James Bond"
has been played by several people notably
"Pierce Brosnan" and "Sean Connery"
Am I correct in my understanding ?
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, that is a correct post in regards to relationships. However in Java, Static is shared by all instances of the class, but can change, unless it is final, in a final class, or in an interface.
 
reply
    Bookmark Topic Watch Topic
  • New Topic