I will use the same example from my previous question and modify it.
I have a class called House. The instance of this class is house.
class House:
def __init__(self, steel, money):
self.steel = steel
self.money = money
def housePlan():
houseHeight = self.steel/self.money
houseEdgeLength = self.money
I have another class called Person. This class gets several inputs and creates an instance of House. House can exist without the Person class.
class Person:
def __init__(self,name, steel, money):
self.name = name
self.steel = steel
self.money = money
def buildHouse():
house = House(self.steel, self.money)
How can I show the relationship between these two classes with UML sequence diagrams?
