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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started