Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7081637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:56:44+00:00 2026-05-28T06:56:44+00:00

I have homework and I’m supposed to draw a class diagram AND data model.

  • 0

I have homework and I’m supposed to draw a class diagram AND data model. I wrote the class diagram. I don’t know what to do about the data model. What are the differences?

According to texts on the Internet they seems to me, ie: class diagrams and data models are the same thing.

What is the difference between class diagrams and data models.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:56:45+00:00Added an answer on May 28, 2026 at 6:56 am

    Unified Modelling Language, as you may already know, is a means of describing systems with diagrams. They don’t just relate to software, but can also relate to hardware, economics, everyday items, in fact anything, although they are more generally used with software systems.

    A class diagram details how you have split your system into discrete objects, how those objects relate to each other and any know interfaces that they may have. Each class in a class diagram can hold both data and function.

    For example a Car class has an Engine, a Steering Wheel class and multiple Wheel, Door, Seat and Pedal classes linked to it. In all of this a class diagram is static.

    I’m not exactly sure what you mean by data model.

    I’ve seen class diagrams used to model database tables, usually these are without any functional element and just show how the data tables relate to each other.

    There are those that argue that there needs to be an addition to the UML standard for Data Diagrams, but as yet none have been ratified.

    This is because persistence of data, key relationships and constraints between tables can be difficult to model with a standard class diagram and most UML tools implement tweaks to the standard in order to allow this.

    Then there are dataflow diagrams which are really Activity diagrams, used to show the flow of data between processes within a system.

    Now if we go back to class diagrams and assume that a data diagram is used to model a database then you’ll notice that there a few differences that may be overlooked.

    A class on a class diagram can have data properties (code variables etc) and functional properties (methods, procedures, functions etc.) but these elements of a class can also have access properties (private, public etc.). A class diagram can also show inheritence e.g. a Volkswagon is a Car, so is a Ford, both will inherit from Car and this can be shown.

    A data diagram in the database sense will show data items (columns/fields in database tables) but the idea of access properties (public, private etc.) or the idea of inheritence has no meaning and thus can’t be shown.

    This is because it isn’t modelling discrete objects that have both data and function but the data associated with those objects. For example a Car table may have a relational link to a Manufacturers table in which is stored the values Volkswagon and Ford. It may have a Wheels column, but this will only show the number of wheels. Stored procedures for the database exist at a level labstracted from the data – they utilise the data, but are not governed or owned by the data tables that they get the data from.

    I’ve probably not explained myself very well, but I hope that I’ve helped.

    Here’s a useful site

    And here’s another and on that site data modelling specifically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a homework problem that I really don't know how to start. Here
I have in my homework some question about data structure: I have elements which
I have this homework, I have only 1 problem, and I don't know the
In my homework, I have to design a class Message; among other attributes, it
I have a great idea for a homework note pad and I wrote the
This is my homework and I have thought a lot about it but I
Have a homework assignment in which I'm supposed to create a vector of pointers
I have a homework assignment that I am supposed to write a http server
I have homework i cant figure out. I know c++ but i am not
I have this homework that I gotta finish, but then something about it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.