Created
March 23, 2021 11:46
-
-
Save LokeshAggarwal2/41bc7d7fd3e599ebc19f6aba4a5a4c1a 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 abstract class Car { | |
protected String color; | |
public abstract void setColor(); | |
public void getColor() { | |
System.out.println("car color:"+ color); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment