4420

Consider the following test code placed in the test class within the main() method. Your task is to write a Java class Vehicle so that the expected output is produced.
For example:
Test 1Ftesult
int wheels • 4; I String make = “Suzuki”; String color = “Yellow”; Vehicle vl • new Vehicle(make); System.out.println(v1.aboutMe()); Vehicle v2 = new Vehicle(make, color); System.out.println(v2.aboutMe()); Vehicle v3 = new Vehicle(make, color, wheels); System.out.println(v3.aboutMe());
Vehicle object created. Make: Suzuki Colour: Blue Wheels: 4 Vehicle object created. Make: Suzuki Colour: Yellow Wheels: 4 Vehicle object created. Make: Suzuki Colour: Yellow Wheels: 4

Attachments:

q.png