Preview

Unified Modeling Language

Good Essays
Open Document
Open Document
1928 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unified Modeling Language
1

a little UML

UML for the Java Associate
Oh my! Umm, hey, I‛m really not ready yet, OK?

UML is Cool.

Rumor has it there are some UML questions on Sun’s new

Java Associates exam. Sadly, the new Head First book on OO isn’t quite ready yet (be sure to check hfoobook.com toward the end of 2005!), but we’ve taken a few random pages (and parts of pages) from it and put them together here. So, if you don’t mind the lack of organization, you should find everything you need to know about UML (for the exam) in the following pages. Oh, and did we mention that the author of this book wrote most of the UML questions for the exam? :-)

this is a new chapter

1

www.hfoobook.com

What’s with all the rectangles?

NOTE: The “facing page” is not included in this little UML booklet!

The four boxes full of text over there on the facing page are our first examples of UML. UML stands for Unified Modeling Language, and it’s the most common notation used for creating diagrams that describe object-oriented systems. It’s beyond the scope of this book to teach you everything there is to know about UML. However, we’ll be sprinkling in a lot of the really critical stuff throughout the course of the book. If you’re going to be moving to Objectopia, you should definitely have a reasonable understanding of UML. In this, our first look at UML, we’ll look at the notation used to represent classes (probably the single most commonly used aspect of UML) as well as the notation used to represent individual objects.

UML
101
Objects

Classes
A class is drawn as a rectangle with three sections. The name of the class (in bold) goes in the first section. attribute types
Book

title : String

It’s less common to draw object diagrams than it is to draw class diagrams. But they can be useful for describing specific examples or complex relationships between objects. class name object name hfJava : Book title = “HF Java” author = “K & B” pages = 619

The 2nd section

You May Also Find These Documents Helpful

  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    If you consider a kitchen, you see it is also composed of several, smaller components, including the oven, refrigerator, and microwave. Top-level objects are composed of smaller components that do the actual work. This perspective is a very natural way of looking at our world, and one with which we are all familiar. We do the same thing in object-oriented programming:…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    Understanding object-oriented methodologies is often difficult. You already understand that object-oriented analysis and design emulates the way human beings tend to think and conceptualize problems in the everyday world. With a little practice, object-oriented programming will become second nature to you.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    2. Class objects normally have _____ that perform useful operations on their data, but primitive variables do not.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    6 8c Chapter Excercises

    • 515 Words
    • 2 Pages

    In object-oriented analysis each object represents real people, places, events, and transactions (nouns). Unlike structured analysis, which treats data and processes separately, objects include data and processes that can affect the data. A major advantage of O-O designs is that systems analysts can save time and avoid errors by using modular objects, and programmers can translate the designs into code, working with reusable program modules that have been tested and verified…

    • 515 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Website Migration Project

    • 2957 Words
    • 12 Pages

    References: Brisolara de Brisolara, L., Kreutz, M. E., & Carro, L. (2010). UML as Front-End Language for Embedded Systems Design. In (Ed.), Behavioral Modeling for Embedded Systems and Technologies: Applications for Design and Implementation (pp. 1-23). Hershey, PA: doi:10.4018/978-1-60566-750-8.ch001. Retrieved on June 15, 2013, from http://www.igi-global.com.libdatab.strayer.edu/gateway/chapter/full-text-html/36336…

    • 2957 Words
    • 12 Pages
    Better Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Name _____________________ Diagramming Sentences #1 Class Period ______ Nouns & Verbs Date _____/_____ Example: SN AV John | searched. Nouns and Action Verbs 1. Aaron worked. 2. They played.…

    • 2924 Words
    • 35 Pages
    Better Essays
  • Powerful Essays

    Key Skills Aon Project

    • 1625 Words
    • 7 Pages

    Report Article 1; source, Children’s workforce and development council. I am going to write a report on the issues of men working in a childcare environment. I will outline the different points made by two different documents regarding the issue and a description of how the issue has affected service provision and methods of working. I shall also highlight the benefits of having men in the childcare sector and how advertising men in this sector could produce a more positive outlook on the issue. Document one is an article from a childcare magazine it is titled ‘A job for the boys’. It’s an article about a man who works in the childcare environment and is highlighting the benefits of having men in the childcare sector as well as saying the negative points that some people may suggest. It goes on to say that the childcare sector is mainly dominated by female workers as only a small percentage of 2% are male. The article states that it considered that people are suspicious when they encounter men seeking work with children. There is a prevailing myth that many men are paedophiles who want to harm children. Many say that childcare originates from a ‘women’s job’. The man in the article then goes onto say about meeting someone when he had just qualified saying that he was a nursery nurse the man then replied ‘is that a garden centre?’ this shows that people automatically assume men have no involvement in the childcare sector, as the man then asked ‘are men even allowed to work In the childcare sector?’. Men also worry about how they are perceived by parents, when a man comes face to face with the parents he may feel intimidated as they may not want…

    • 1625 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    week 1 assignment

    • 1379 Words
    • 6 Pages

    Bohl, M., & Ryann, M. (2008). Tools for structured and object-oriented design: An introduction to programming…

    • 1379 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The Tale of Two Heros

    • 2380 Words
    • 10 Pages

    A(n) ____ is a UML technique that visually represents the interaction between users and an information system.…

    • 2380 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Unified Modeling Language A type of static structure diagram that describes the structure of a system by showing the system's classes,…

    • 336 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Graphic Organizer

    • 890 Words
    • 5 Pages

    Uses of Graphic Organizer Examples of Graphic Organizer Concept Map A concept map is a diagram that depicts suggested relationships between concepts. A concept map typically represents ideas and information as boxes or circles, which it connects with labeled arrows in a downwardbranching hierarchical structure.…

    • 890 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    The similarities that I found are that Peter Chen’s, Information Engineering, and UML diagrams all use square cornered shapes for entities. Also that only Information Engineering diagram, ORM, UML, Richard Barker’s notation, and Peter Chen’s diagram contain the entity’s name in the shape that depicts the entity in the diagram. As for the attributes two of them are displayed inside the entity…

    • 502 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The main interface that provides two options either click on GIUDE or START. If visitor clicks on GIUDE option, help tools (PDF, pictures and videos) will appear in new interface. Also, if visitor clicks on START option, user starts locating items in the museum and find out more about items that are on display and print it by using printer if wants. Moreover, if staff uses system, s/he can log in as an administrator by clicking in login icon. Then, staff can make changes in system by add or delete items with details and put it in right place in map and add new exhibits information. Also, staff can use system as visitor to be sure that system work fine with visitor.…

    • 312 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Term Paper

    • 274 Words
    • 2 Pages

    07. Draw a diagram to represent a class called ‘Catalogue’ and a class called ‘ItemFor Sale’ as define below:…

    • 274 Words
    • 2 Pages
    Good Essays