Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visio UML Class Diagrams

Status
Not open for further replies.

JohnnyRKSD

Programmer
Jul 15, 2011
1
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top