Yes exactly. The new class Car will have 2 different attributes which are both called speed.
Type: Posts; User: Cornix
Yes exactly. The new class Car will have 2 different attributes which are both called speed.
This is a tricky question.
If you look at this example Code:
public class Vehicle {
protected int speed;
public int getSpeed() {
return speed;
}