Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python UML .Can anyone helpe to understand the pthon UML, I appreicated it . Giving the python code as follows: class C(object): pass class D(object):

Python UML .Can anyone helpe to understand the pthon UML, I appreicated it .

Giving the python code as follows:

class C(object): pass

class D(object): pass

class A(object):

def _ _init_ _(self,x,y);

self.x=x; self.y=y;

def hello (self,str);

prnt(str +str(c))

class B(A);

def _ _init_ _(self);

#this is "aggregation" not composition"

self.c= C

self.d= D

if _ _name_ _ =="_ _main_ _";

a=A(10,20) #

a=A(20,30) #

(a)Draw an UML Class Diagram of A ,and an UML Class Diagram of B

(b)Draw an UML object Diagram of A and an object Diagram of B

(c)Draw an UML diagram to describe the relationship between A and C; an UML diagram relationship between A and B; an UML diagram relationship between B, C and D

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions