23 lines
417 B
Python
23 lines
417 B
Python
'''
|
|
Created on Apr 4, 2023
|
|
|
|
@author: ahypki
|
|
'''
|
|
from net.hypki.Figure import Figure
|
|
from net.hypki.Square import Square
|
|
|
|
if __name__ == '__main__':
|
|
f = Figure()
|
|
f.__name = "New name"
|
|
|
|
f2 = Figure('Another name')
|
|
|
|
print(str(f))
|
|
print(str(f2))
|
|
|
|
s1 = Square('Square1')
|
|
print(str(s1))
|
|
# print(str(s1.__name)) # will not work
|
|
print(s1.get_name())
|
|
|
|
print('Finished!') |