Implied
| |||
Car class, you don't absolutely
need to prefix the field names with this. like this.licensePlate
or this.speed . Just licensePlate and speed
are sufficient. The this. may be implied. That's because the floorIt()
method must be called by a specific instance of the Car
class, and this instance knows what its data is. Or, another way of
looking at it, the every object has its own floorIt() method.
For clarity, I will use an explicit | |||
|