✏️ Explanatory Question

What is the scope of constant variables in X++? Can they be accessed outside their declaring method or class?

👁 63 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

The scope of a constant variable depends on where it is defined. If defined within a method, it has local scope. If defined at the class level, it has class scope and can be accessed by other methods within the same class.