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?
Question Info
Choose the Best Option
Click any option to instantly check if you're correct.
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.
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
Nice — 3 questions done!
Don't lose this streak. Sign up free to save your score and pick up exactly where you stopped.
Share This Question
Challenge a friend or share with your study group.