Updated abstract 'PowerCard' class.

Updated the abstract 'PowerCard' class by setting the 'card' attribute to 'protected' in it.
This commit is contained in:
Daniel Grigencha
2024-12-06 00:03:16 +01:00
parent c9c9c5dcf6
commit a09211da5f

View File

@@ -16,7 +16,7 @@ public abstract class PowerCard {
* Create PowerCard attributes.
*/
private final UUID uuid = UUID.randomUUID();
private final BonusCard card;
protected BonusCard card;
/**
* Constructor.
@@ -25,15 +25,6 @@ public PowerCard() {
this.card = BonusCard.HIDDEN;
}
/**
* Constructor.
*
* @param card as the card type of this PowerCard class as BonusCard enumeration.
*/
public PowerCard(BonusCard card) {
this.card = card;
}
/**
* This method will be used to call the visit method of the given visitor parameter and pass a PowerCard object.
*