28 lines
448 B
Python
28 lines
448 B
Python
'''
|
|
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)
|