Im new in python and I have a sample UML diagram here.
How to implements this in python, using Prototype Design Pattern.
This is my code.
from abc import ABCMeta, abstractmethod
import copy
class Shape:
def __init__(self, x, y, color):
self.x = x
self.y = y
self.color = color
How to code the + Shape(source)
and + clone()
Aucun commentaire:
Enregistrer un commentaire