Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!