I would like to create object based on arguments I provided.
For example
abilities1 = {
"empathy" : 1000
}
abilites2 = {
"strength" : 100
}
And now I want to pass abilities dict to class which automatically determine if object should be Man class (strength ability in dict) or Women class (empathy ability in dict).
Is there any technique to write this class? I would like to avoid IFs.
Thank you in advance and sorry for stereotyping genders :)