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 7811301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:06:38+00:00 2026-06-02T04:06:38+00:00

I am creating the class diagram for my project. I will use some WebViews

  • 0

I am creating the class diagram for my project. I will use some WebViews in a class. My question is:

Should I write the WebView class in my UML class diagram or can I only use a WebView as a type?

For example, if a have a string: String a, in my class diagram, I will put a : String in the class attributes, but if I have WebView wv in my class, can I do the same as for the string and write in the class attributes: wv: WebView or I have to write the WebView class and then make an association with my class?

  • 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-06-02T04:06:40+00:00Added an answer on June 2, 2026 at 4:06 am

    Short answer: you can do either.

    Longer answer: UML doesn’t constrain what you do here. There is no rule that says what types can be used as the value of attributes vs. what must be shown as associations.

    Longest answer is actually a question: what do you want to communicate with the diagram? Class diagrams are good for showing structure – the links (associations) among classes. So: is the association between your class and your Webview instance interesting? For example, does the same instance of WebView also relate to some other object? Is there anything about that relationship that’s interesting? Can the WebView instance outlive the instance of your class? And so on.

    hth.

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

Sidebar

Related Questions

I am creating a class library for a project management application. I will brief
I'm creating a UML Class Diagram for an inventory system as part of a
I'm creating UML diagrams (use case and class diagrams) in Visual Studio 2010 for
I'm creating a tool for displaying Python project as an UML diagram (+ displaying
I'm creating a class that will have one public method, which returns a value
What is the use of creating base class object using child class reference in
I'm creating a class that will store data in a file and I need
Based on a project is it possible to automatically generate a class diagram with
When creating a class library in C++, you can choose between dynamic ( .dll
I am creating a Class Diagram for a simple booking system for the theater.

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.