How should you call the Truck class implementation of the brake () method?

You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake ().

How should you call the Truck class implementation of the brake () method?
A . Vehicle. brake ();
B . This. brake ();
C . MyBase. brake();
D . Truck. brake ();

Answer: C

Explanation:

The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to access base class members that are overridden or shadowed in a derived class.

Latest 98-361 Dumps Valid Version with 164 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments