Microsoft
98-361 · Question #356
98-361 Question #356: Real Exam Question with Answer & Explanation
Sign in or unlock 98-361 to reveal the answer and full explanation for question #356. The question stem and answer options stay visible for context.
Question
You need to provide printing functionality to several of your classes. Each class's algorithm for printing will likely be different. Also, not all the classes have an "is-a" relationship with each other. How should you support this functionality?
Options
- AAdd the print functionality to a base class with the public access modifier.
- BHave all classes inherit from an abstract base class and override the base-class method
- CHave all the classes inherit from a base class that provides the print functionality.
- DCreate a common interface that all classes implement.
Unlock 98-361 to see the answer
You've previewed enough free 98-361 questions. Unlock 98-361 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.