prog-obiektowe/python/net/hypki/Figure.py

28 lines
448 B
Python
Raw Normal View History

2023-04-04 18:13:13 +02:00
'''
Created on Apr 4, 2023
@author: ahypki
'''
class Figure():
'''
classdocs
'''
__name = '';
def __init__(self, newName = 'Default __name'):
'''
Constructor
'''
self.__name = newName;
def get_name(self):
return self.__name
def set_name(self, value):
self.__name = value
def __str__(self):
return "Figure with name= {0}".format(self.__name)