50 likes | 160 Views
Designing a Card Game. Solitaire-- Thirteens. Game. Objects Needed to play cards?. Class Design for Card. Instance Variables (at the top of the class & private!):. private String suit; private int pointValue ;. private __________ ____________; private ___________ ____________;.
E N D
Designing a Card Game Solitaire--Thirteens
Class Design for Card Instance Variables (at the top of the class & private!): private String suit; private intpointValue; private __________ ____________; private ___________ ____________; Constructor Methods: accessors & modifiers
Exercise 1: Download CreditCard.zip • You are working for American Express. They need to develop credit card processing software. Create a class CreditCard that represents a credit card account. • 1 private instance variable • 1 constructor • 3 methods • Exercise 2: Download flower_project_draft.zip • You are a designer and need to create a logo for a company. Write a class that describes a flower. • 2 instance variables • 1 constructor • 1 method (draw()) Exercise 3: Optional Download InchWorm.zip