Created
August 31, 2019 13:44
-
-
Save rudrakshbhati/076acfca7be0e7d48d73ee9a197c0d80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.inject.Inject; | |
public class VehicleShopping { | |
private Vehicle vehicle; | |
@Inject | |
public VehicleShopping(Vehicle vehicle) { | |
this.vehicle = vehicle; | |
} | |
public void testDrive() { | |
vehicle.drive(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment