Microsoft
MB-500 · Question #214
MB-500 Question #214: Real Exam Question with Answer & Explanation
Sign in or unlock MB-500 to reveal the answer and full explanation for question #214. The question stem and answer options stay visible for context.
Question
A company uses Dynamics 365 Finance. You implement an abstract class named Car. The Car class has the following: - A real member called weight that is used to store the weight of the car. - An abstract getWeight method that returns the value of the weight member. The Car class code is: You must create a child class named BigCar. You need to implement the Car class by using the BigCar child class. Which code segment should you use?
Options
- Aclass BigCar extends Car { void new(real _weight) { weight = _weight; } public real getweight()
- Bclass BigCar implements Car { void new(real _weight) { weight = _weight; } public real getweight()
- Cclass BigCar extends car { public real getWeight() { return weight; }}
- Dclass BigCar : car { void new(real _weight) { weight = _weight; } public real getweight() { return
Unlock MB-500 to see the answer
You've previewed enough free MB-500 questions. Unlock MB-500 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.