I have a method method update(Student std, Boolean isupdateRequired)
On the basis of isupdateRequired
flag i am updating the value of Student Object.
Now it's simple and i am not marking any columns value as true/false
by using isupdateRequired
.
Now my questions is that for above mentioned case is Enum is better option instead of Boolean? If yes why to use Enum.
Aucun commentaire:
Enregistrer un commentaire