Microsoft Dynamics 365: Finance and Operations Apps Developer — Question 44
You create a new interface class in Dynamics 365 Finance. The class has two methods.
You need to create a valid interface class.
Which two actions should you perform? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Answer options
- 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.
Correct answer: A, D
Explanation
The correct answer A ensures that both the class and its methods are accessible, which is essential for an interface. Option D is also correct because all methods must be declared in the implementing classes to comply with the interface contract. Options B and C are incorrect; B allows for incomplete implementation, which contradicts interface requirements, and C would prevent the interface from being instantiated, which is not suitable for an interface.