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 UML Class Diagram of A and Class Diagram of B
(b)Draw UML object Diagram of A and object Diagram of B
(c)Draw UML diagram to describe the relationship between A and C, relationship between A and B.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
