JohnnyRKSD
Programmer
I've been using Visio 2007 SP2 since early 2008 for generating MEP P&ID's. But, recently I've been taking C/C++ Programming courses at UCSD. This semester we are learning OOP and UML Diagrams. The 1st lesson required us to create a UML class diagram with 3 private objects, 5 public functions and a <<constructor>> function.
However, the Visio help (off/on-line) does not explain how to create this constructor function that initializes the 3 private
objects when the instance is created. I created a function in the operation properties for a constructor - Data(month: Integer, day: Integer, year: Integer). But, I don't know how to make this a Visio 2007 UML constructor identified by <<constructor>> in front of Date(...).
According to what I could find on-line, I created a new stereotype(UML --> stereotype) “constructor” with Base Class = “Class” and
IsRoot, IsLeaf and IsAbstract unchecked. I then Right+Clicked on
the Date Class block, clicked on Operations, selected the
constructor “Date”, clicked on Properties --> UML Operation
Properties for Date. Can you tell me why Visio will not let me set the stereotype for Date to constructor? What am I missing here?
However, the Visio help (off/on-line) does not explain how to create this constructor function that initializes the 3 private
objects when the instance is created. I created a function in the operation properties for a constructor - Data(month: Integer, day: Integer, year: Integer). But, I don't know how to make this a Visio 2007 UML constructor identified by <<constructor>> in front of Date(...).
According to what I could find on-line, I created a new stereotype(UML --> stereotype) “constructor” with Base Class = “Class” and
IsRoot, IsLeaf and IsAbstract unchecked. I then Right+Clicked on
the Date Class block, clicked on Operations, selected the
constructor “Date”, clicked on Properties --> UML Operation
Properties for Date. Can you tell me why Visio will not let me set the stereotype for Date to constructor? What am I missing here?