45.2k views
1 vote
Can you show me how to code this is GDBonline? explaining each statement with notes//

Can you show me how to code this is GDBonline? explaining each statement with notes-example-1
Can you show me how to code this is GDBonline? explaining each statement with notes-example-1
Can you show me how to code this is GDBonline? explaining each statement with notes-example-2
User Edharned
by
3.2k points

1 Answer

4 votes

Answer:

Create two classes, PlayingCard and Main, as depicted in the attachments.

Step-by-step explanation:

The getters/setters are not actually used in this code, but creating them is pretty standard. Although, you could argue that a PlayingCard object should never change value/suit, and is what it is as long as it exists. Such objects would be called "immutable".

Can you show me how to code this is GDBonline? explaining each statement with notes-example-1
Can you show me how to code this is GDBonline? explaining each statement with notes-example-2
User Jeremykenedy
by
3.8k points