-
Notifications
You must be signed in to change notification settings - Fork 0
/
Card.java
43 lines (36 loc) · 959 Bytes
/
Card.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package book;
import jade.content.Concept;
public class Card implements Concept{
private String cardType;
private String cardNumber;
private int index;
Card(String cardType, String cardNumber,int index)
{
this.cardNumber= cardNumber;
this.cardType= cardType;
this.index= index;
}
public void setCardNumber(String cardNumber) {
this.cardNumber = cardNumber;
}
public void setCardType(String cardType) {
this.cardType = cardType;
}
public String getCardNumber() {
return cardNumber;
}
public String getCardType() {
return cardType;
}
public int getIndex()
{
return index;
}
@Override
public String toString() {
return "Card{" +
"cardType='" + cardType + '\'' +
", cardNumber='" + cardNumber + '\'' +
'}';
}
}