Tuesday, 5 February 2013

Object Diagram

  • An object is an instance of a class
  • Every object has its own copy of the attributes defined in the class an can perform the behaviurs defined in the class
  • For example if a television class has defined then an object of that class might have values for its attributes as follows:
    • size = 34
    • serial number = 123459876
    • production date = 10/06/01
  • An object is represented in the UML in the following fashion
    • A rectangle is used with an underlined name
    • The name of the object is on the left of a colon
    • The name of the class from which the object is produced is specified on the right fo the colon

No comments:

Post a Comment