Preview

Website Design

Good Essays
Open Document
Open Document
424 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Website Design
UML Class Diagrams and Examples

Here are some examples of UML class diagrams and explanations of their contents. See if you can interpret the last diagram yourself. Refer to Handout #2 for help with the UML syntax.

Example #1: Inheritance – Vehicles

This diagram shows an inheritance hierarchy – a series of classes and their subclasses. Its for an imaginary application that must model different kinds of vehicles such as bicycles, motor bike and cars.

[pic]

Notes

• All Vehicles have some common attributes (speed and colour) and common behaviour (turnLeft, turnRight) • Bicycle and MotorVehicle are both kinds of Vehicle and are therefore shown to inherit from Vehicle. To put this another way, Vehicle is the superclass of both Bicycle and MotorVehicle • In our model MotorVehicles have engines and license plates. Attributes have been added accordingly, along with some behaviour that allows us to examine those attributes • MotorVehicles is the base class of both MotorBike and Car, therefore these classes not only inherit the speed and colour properties from Vehicle, but also the additional attributes and behaviour from MotorVehicle • Both MotorBike and Car have additional attributes and behaviour which arespecific to those kinds of object.

Example #2: Relationships – Students and Courses

This example demonstrates relationships between classes. It’s from an imaginary application that models university courses.

[pic]

Notes

• Each Course object maintains a list of the students on that course and the lecturer who has been assigned to teach that course • The Course object has behaviour that allow the adding and removing of students from the course, assigning a teacher, getting a list of the currently assigned students, and the currently assigned teacher.

• Teachers are modelled as Lecturer objects. As a lecturer may teach more than one course there is an association between Course and Lecturer. The

You May Also Find These Documents Helpful

  • Powerful Essays

    smog appendix j

    • 2116 Words
    • 9 Pages

    In addition to the vehicles listed in Table 2, all vehicles one model-year old and…

    • 2116 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Nt1330 Unit 5 Exercise 1

    • 595 Words
    • 3 Pages

    • It should permit students to examine currently available courses, add and drop courses to and from their schedules, and examine the courses for which they are enrolled. • Department staff should be able to print a variety of reports about the courses and the students enrolled in them. • The system should ensure that no student takes too many courses and that students who have any unpaid fees are not permitted to register.…

    • 595 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Week 2 Assignment 520

    • 752 Words
    • 4 Pages

    The proposal uses vehicle comparative information for consumers to use to purchase vehicles and for manufacturers to continuously improve safety feature by using research and public comments about areas to look into and how to improve the safety features.…

    • 752 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Gbs603 Unit 3 Assignment 1

    • 6339 Words
    • 26 Pages

    Blackboard 3 3. Student Email 3 GENERAL COURSE INFORMATION 3 4. Brief Course Description 3 5. Assumed Knowledge 4 6.…

    • 6339 Words
    • 26 Pages
    Satisfactory Essays
  • Good Essays

    A database is an integrated computer structure that stores end-user data and metadata (Coronel, Morris, & Rob, pg. 7). Data are the raw format of information, which when properly formatted can produce accurate, relevant, and timely information that is the key to making good decisions (Coronel, Morris, & Rob, pg. 5-6). The purpose of a database is to provide computer-based systems a way in which to store, manage, and retrieve data quickly (Coronel, Morris, & Rob, pg. 5). As for a local college database, the purpose of the database will be to house the data of enrolled students, the courses offered and times available, and the information of the faculty. The database can provide possible course matches for each student based off of previous courses taken and pre-requisites obtained, as well as keep track of the professors teaching each course. The database will provide the data a student needs to insure they are taking the correct courses and provide the college and the faculty general student information, such as contact information.…

    • 906 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    I am responsible for following the training plan and the designing of lesson plans and course structure which fulfil the student’s requirements and course outcomes required by the Awarding Bodies for teaching and assessing standards.…

    • 1193 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    Physcian Assistant

    • 1699 Words
    • 7 Pages

    Class activities will include three examinations, lectures, readings, class discussions over assigned readings, Virtual Blended Discussion…

    • 1699 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Evidence and Guiding

    • 4353 Words
    • 18 Pages

    º How does the design or structure of the lesson help students understand connections between and among discrete facts and their relationship to major concepts or big ideas?…

    • 4353 Words
    • 18 Pages
    Good Essays
  • Good Essays

    either teacher or learner, although the participants are given teacher. They hook the “students” up…

    • 644 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The information that we will be recording is assignments for the course, any assigned reading for the course, research both assigned and interest-based, and other learning activities. By getting this information from the user the program will store this information and recall it to the user on a time and scheduled output as well as show what still needs to be done in the course.…

    • 772 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    CIS 2321 Week 6 Teamwork

    • 227 Words
    • 3 Pages

    Possible uses could include the register for the course, process payments, created course schedules, Assign Instructor, Print course roster, and paying tuition. Actors could include student instructor, tutor, registrar, advisor, and the cashier.…

    • 227 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Cars And Trucks

    • 735 Words
    • 2 Pages

    There are a lot of places in the world where one can go to bask or have good time. There are also ways to go to those places, such as in cars, planes, trucks or trains. People from our society do not have much money to buy those expensive machines, trains nor planes. Today´s generation merits enough to buy cars or trucks depending on what is going to be the purpose of it. No everyone likes the same type of transportation, but most of them like cars more than trucks. In this essay there will be comparing car vs trucks and how they are alike in the interior, exterior and the engine.…

    • 735 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Databases are used for record keeping and tracking of information institutions like colleges or organizations (Coronel & Morris, 2015). In this case, the database will be used to keep track of the students・attendance, performance and the courses they are supposed to be taking. This will help the college analyze how the students perform and which classes they least or most attend. The database will also help the college keep track of all the subjects which the student is taking or is expected to take in during the course. Instructors will also be part of the database. The database will track their performance in various subjects and their attendance in each class. The database will be upgraded at the beginning of every subject where each student will confirm their attendance for the particular subject and whether the instructor is in class as well. After an examination, all the students・performance will be…

    • 590 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Contract Law

    • 302 Words
    • 2 Pages

    Simon owns two motor cars. Both cars are the same make and model. Both cars are black. However one of the cars has had its motor replaced with a diesel motor rather than a petrol motor.…

    • 302 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    assessment upon induction to the course. This will allow the tutor to pinpoint who may…

    • 1084 Words
    • 5 Pages
    Better Essays

Related Topics