- A To define custom data types
- B To declare global char variables
- C To create class methods
- D To manage exception handling
- Share this MCQ
Answer:
A
Share this MCQ
Base enums in X++ are used to define custom data types that consist of a predefined set of constant values. These enums provide a way to improve code readability, maintainability, and type safety by allowing developers to work with meaningful labels instead of raw numeric or string values. They are particularly useful for defining options, statuses, or categories in your application. By using base enums, you can ensure that only valid values are assigned to variables or passed as function parameters. This leads to more robust and error-resistant code.
Click me to Read more Question & Answer of Module 4: Base EnumerationsShare this MCQ