Multiple Choice
Suppose you have a subclass Truck, a superclass Vehicle, and a property in Vehicle named year. How can a method in Truck access the year property?
A) year
B) this.year
C) super.year
D) Vehicle.year
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q20: Using the formal JavaScript inheritance terms, which
Q21: Suppose an <code>onclick</code> event-handler function includes an
Q22: The formal term for creating an object
Q23: Suppose that you have a class named
Q24: If the following code executes, what message
Q25: Sort the following three strings so they
Q26: The Array object's concat method returns a
Q28: Provide code that instantiates an array named
Q29: A(n) _ is a special method that
Q30: What is a two-dimensional array?