473,654 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help in UML class diagram

13 New Member
I am learning UML diagrams on my own but have a problem in beigning itself I am unable to understand that what are class diagrams in my project. One of my friends suggested that all the pages in my web page form each of th class is thet true or not . Please Help me .
Mar 12 '08 #1
1 2134
gits
5,390 Recognized Expert Moderator Expert
hi ...

i wouldn't construct it that way ... a class is a kind of 'prototype' for an object so let me speak in javascript terms and demonstrate it with some easy code:

1. we create a class:

Expand|Select|Wrap|Line Numbers
  1. // constructor
  2. function PAGE() {
  3.     this.add_events();
  4. }
  5.  
  6. // define a method to add some events to the page
  7. PAGE.prototype.add_events = function() {
  8. }
now we construct the webpage

[HTML]<html>
<head>
<script type="text/javascript" src="page_class .js"/>
</head>
<body onload="var page = new PAGE;">
</body>
</html>[/HTML]
as you can see in the onload we create an instance of the PAGE-Class and the page is not a class but an instance or call it an object if you want to see it that way

classes in a webproject could be a PAGE-class, a TREE_MENU-class, an AJAX_REQUEST-class etc. ... ok? and in your pages you use them to create instances from them that has their own data, their own methods ... i hope it would help you ...

kind regards
Mar 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2107
by: A.M | last post by:
Hi, I am looking for a Diagram that visually shows how System.Web.HttpApplication class contains System.Web.UI.Page classes and how they interact together. I am trying to underestand the class architecture of ASP.NET. Can anybody refer me to a link or resource related to that ? Any help would be apprecited,
1
1269
by: alex | last post by:
Moving existing asp.net 1.1 app to 2.0 and using VS2005 I have noticed: 1) Class View window display ONLY name spaces and classes located in the new folder App_Code. 2) Using "Add New Item" on App_Code folder presents limited number of items -> no Web Page, no User Control, giving a hint that these items shouldn't go in this folder. Instead should go under the web root and other sub-folders. I haven't run a conversion wizard on my 1.1...
2
1339
by: Jacob Kroon | last post by:
I'm writing a block-diagram editor, and could use some tips about writing/reading diagrams to/from an xml file format. The basic layout of my code : class Diagram { Blocks blocks } class Block { int x, y
0
1417
by: Ian Ceicys | last post by:
I’ve been tasked with doing documentation on the project I’ve recently joined. Here’s what I’m looking for in terms of documentation. I want to generate a diagram from a huge .net 1.1 Winforms application that relates every form with the corresponding button/command that invokes that form. In other words I want to output a diagram that traces the flow (workflow is the right term?) of what happens when every single button/command is...
3
2478
by: Alberto | last post by:
I have the professional version of visual studio 2005 and I'd like to know if I can create associations between classes in the classes diagram. Thank you.
3
1639
by: Lee Crabtree | last post by:
Are there any tools that will take an existing assembly and generate a class hierarchy from it? It seems like the kind of thing that would be possible with reflection, but I don't know enough about that namespace to tackle this. Lee Crabtree
1
4680
by: Jennifer Jazz | last post by:
My question is regarding the mapping of Class diagram to the C++ coding. There are 3 realtions in Class diagram 1) Assosication 2) Composition 3) Aggregation (Weak Composition). -----------------------------------------------------
1
1831
by: elsa | last post by:
hi everyone, i have a qustion that i cant solve in drwaing a uml class diagram and this is the case: ------------------------------------------------------------------------------------- In a polyclinic, the receptionist handles the appointment and payments for many doctors. A patient usually calls regarding an appointment, in order to: - schedule an apt. with a specific doctor - Postpone an apt. - Cancel an apt. - inquire about...
0
2222
by: Tony Johansson | last post by:
Hello! I try to use the class diagram feature in VS 2005 but the drawing is different se below. If I have an Interface that "implement" two other interface these vill be shown with arrows pointing to the top interface which is correct. If I instead have a class that implement an interface these will not be shown with arrows in the class diagram. What is the reason for not using
1
2102
by: name08 | last post by:
hi everyone... i am making a class diagram and want to store the information of class diagram in an XML file....can anyone please tell me how do i store the association,aggreagation,inheritance between different classes in the following XML / any other XML <?xml version="1.0" encoding="UTF-8"?> <classdiag> <class id="1"> <name>customer</name> <operation>reservation of tour</operation> <operation>view tour...
0
8294
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8596
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2719
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.