MB6-704 · Question #19
You have a table named Tablel that contains the information from a sales invoice. For Tablel, you need to create a method named TaxAmountthat will return the total amount of tax for the invoice. The…
The correct answer is A. Static. Static methods, or class methods, belong to a class and are created by using the keyword static. They are called by using the following syntax: ClassName::methodName(); You do not need to instantiate an object before you use static methods. Static methods are widely used in…
Question
You have a table named Tablel that contains the information from a sales invoice. For Tablel, you need to create a method named TaxAmountthat will return the total amount of tax for the invoice. The method will be used in a report to show the tax amount information. Which type of method should you use?
Options
- AStatic
- BAccessor
- CMain
- Ddisplay
How the community answered
(23 responses)- A74% (17)
- B13% (3)
- C9% (2)
- D4% (1)
Explanation
Static methods, or class methods, belong to a class and are created by using the keyword static. They are called by using the following syntax: ClassName::methodName(); You do not need to instantiate an object before you use static methods. Static methods are widely used in Microsoft Dynamics AX to work with data that is stored in tables.
Topics
Community Discussion
No community discussion yet for this question.