QuestionQ191

Design and develop AOT elements

You create a new interface class in Dynamics 365 Finance. The class contains two methods.

You need to create a valid interface class.

Which two actions should you take? Each correct answer provides a complete solution.

NOTE: Each correct selection is worth one point.

Choose two
  • A Declare the class and all its methods as public.
  • B Implement only some methods in the classes that implement the interface.
  • C Implement the class as abstract.
  • D Declare all methods in the classes that implement the interface.
Explanation

An X++ interface specifies public instance methods. The interface and its methods are public, and every class that implements that interface must declare and implement all of its methods. Declaring the public keyword explicitly is valid, although it is optional in X++.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!