Created
March 23, 2021 11:49
-
-
Save LokeshAggarwal2/ed52dca561cd53468bdb068d3125c92e 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
public class Application { | |
public static void main(String[] args) { | |
CarFactory carFactory = new CarFactory(); | |
Scanner sc= new Scanner(System.in); | |
System.out.print("Enter a car"); | |
String str= sc.nextLine(); | |
Car car = carFactory.getCar(str); | |
car.setColor(); | |
car.getColor(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment