nerdexam
Microsoft

98-361 · Question #358

98-361 Question #358: Real Exam Question with Answer & Explanation

Sign in or unlock 98-361 to reveal the answer and full explanation for question #358. The question stem and answer options stay visible for context.

Question

Suppose that you are writing code for a class named Product. You need to make sure that the data members of the class are initialized to their correct values as soon as you create an object of the Product class. The initialization code should always be executed. What should you do?

Options

  • ACreate a static method in the Product class to initialize data members.
  • BCreate a constructor in the Product class to initialize data members.
  • CCreate a static property in the Product class to initialize data members.
  • DCreate an event in the Product class to initialize data members.

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.

Full 98-361 Practice