Single Choice Moderate

Q

You are developing a custom module in Microsoft Dynamics 365 finance and operations apps that requires using object-oriented principles to manage financial transactions.

You need to ensure that the module supports different types of transactions while sharing common functionalities and adhering to the principle of inheritance.

You need to design the classes appropriately.

How should you do this?

ID: #22590 Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer 125 views
Question Info
#22590Q ID
ModerateDifficulty
Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps DeveloperTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Create separate classes for each transaction type without a base class and replicate the common functionalities. ✔ ✖
  • B Create a base class for common transaction functionalities and derive specialized classes for each transaction type. ✔ ✖
  • C Use a standalone utility class that handles all types of transactions with conditional statements. ✔ ✖
  • D Implement all transaction types within a single class to centralize the transaction management. ✔ ✖
Correct Answer

Explanation

Option B is correct because it uses inheritance to share common functionalities among different transaction types. Option A is incorrect as it violates the single responsibility principle and does not use inheritance. Option C is incorrect because it does not leverage the benefits of object-oriented design such as inheritance. Option D is incorrect as it leads to code duplication and does not use inheritance.

Implement Chain of Command - Training | Microsoft Learn

Class extension - Method wrapping and Chain of Command - Finance & Operations | Dynamics 365 | Microsoft Learn

Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue X++ Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions