How to save sex into a variable (male / female)

Hi. I'm currently programming a program where people can be male and female. I'm currently saving this into a boolean.

Handling sex with true and false is a bit rough, but i don't really know what the best implementation would be. Sure i could save a char "m" or "f" but this would require more than a bit, thats why i use a boolean.

This is more a discussion than a beginner question.

Please tell me your opionion about it. Thanks

by Jonas_Dralle via /r/csharp

Leave a Reply