Skip to content

Commit 13742eb

Browse files
persona
1 parent 6469250 commit 13742eb

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lavoratoreP.iva.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from persona import Lavoratore
2+
3+
4+
class LavoratorePiva(Lavoratore):
5+
super().__init__(nome, cognome, data_nascita, sesso, peso, idbaige, mansione)
6+
7+
8+
def stipendio(self):
9+
return tariffa_giornaliera + ore_lavorate
10+

persona.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def __str__(self):
4646
return str(self._nome) + ' ' + str(self._cognome) + ' ' + str(self._data_nascita) + ' ' + str(self._sesso) + str(self._peso)
4747

4848
def __eq__(self,other):
49-
if isinstance(other):
5049
if other._nome==self._nome and other._cognome==self._cognome and other._data_nascita==self._data_nascita and other._sesso==self._sesso and other._peso==self._peso:
5150
return True
5251
return False

0 commit comments

Comments
 (0)