150 likes | 291 Views
UML Diagrams. Notebooks OUT! No, you will not be taking notes… but you will need your notebook!. UML Diagrams. When designing a class it helps to draw a UML diagram. UML – Unified Modeling Language This is the standard that professionals use. Class Name goes here. Fields are listed here.
E N D
Notebooks OUT! • No, you will not be taking notes… but you will need your notebook!
UML Diagrams • When designing a class it helps to draw a UML diagram. • UML – Unified Modeling Language • This is the standard that professionals use. Class Name goes here Fields are listed here Methods are listed here
UML Diagrams • Add your members to the UML: Class Name goes here Fields are listed here Methods are listed here
UML Diagrams • Indicate if the members are public or private: • - This means that the member is private • + This means that the member is public • Also, list the method’s parameters.
UML Diagrams • State whether the methods are void or return a value: Class Name goes here Fields are listed here Methods are listed here Congrats! You’re Done!
UML Diagrams • Keep in mind, that most people are not as smart as us. They are not using our variable notation. • This is how a UML diagram looks if your variable name does not specify its data type:
UML Diagrams • Take the next minute and practice creating a UML. • Create one of your Circle Class. • Again, here is the example of the Rectangle class….
UML Diagrams Class Name goes here Fields are listed here Methods are listed here