✏️ Explanatory Question

What is the difference between instance methods and static methods in X++?

👁 55 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Instance methods in X++ are associated with an instance of a class and require the object to be instantiated before they can be used. They can access both instance and static members of the class. Static methods, on the other hand, belong to the class itself and do not require an instance to be called. Static methods can only access static members of the class.