When would an enum or enumeration be used?

Whenever a procedure accepts a limited set of variables , consider using an enumeration. Enumerations make for clearer and more readable code, particularly when meaningful names are used. The benefits of using enumerations include: Reduces errors caused by transposing or mistyping numbers.

Sizin İçin Seçtik  CryptoTab browser pc'ye zarar verir mi?

Leave a Reply

Your email address will not be published. Required fields are marked *