Created
September 17, 2014 12:20
-
-
Save Happsson/bd0d338246346d854a92 to your computer and use it in GitHub Desktop.
Card.java
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
package math; | |
public class Card { | |
String color; | |
int number; | |
public Card(String color, int number) { | |
this.color = color; | |
this.number = number; | |
} | |
public String getColor() { | |
return color; | |
} | |
public void setColor(String color) { | |
this.color = color; | |
} | |
public int getNumber() { | |
return number; | |
} | |
public void setNumber(int number) { | |
this.number = number; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment