Selecting Attributes
(Tutorial Page 10)


  • Try to define attributes that are independent of one another.
  • An attribute value should not depend on the value of another attribute.
  • Example of a dependent attribute:
  • If a locomotive has make and engine-type attributes, in the following case they are dependent:
    1. make can be GE or Other
    2. Engine-type is diesel if make is GE, otherwise Engine-type is coal

  • Better solution is to create two objects GE_Locomotive and Other_Locomotive:
    1. GE_Locomotive has diesel-engine
    2. Other_Locomotive has coal-engine


    |-Previous Slide-| -Next Slide-| -Table of Contents-|-List of Tutorials-| -Home Page-|-Disclaimer-|
    If desired, insert comments for oobasc10
    Your Email Address(Optional)
    Action
    Copyright © 1997 Object Ideas Corporation --- Last Updated January 15, 1997