Presentation is loading. Please wait.

Presentation is loading. Please wait.

Designing a Card Game Solitaire--Thirteens. Game.

Similar presentations


Presentation on theme: "Designing a Card Game Solitaire--Thirteens. Game."— Presentation transcript:

1 Designing a Card Game Solitaire--Thirteens

2 Game

3 Objects Needed to play cards?

4 Class Design for Card Instance Variables (at the top of the class & private!): Constructor Methods: accessors & modifiers private ______________________; private ___________ ____________; private String suit; private int pointValue;

5 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


Download ppt "Designing a Card Game Solitaire--Thirteens. Game."

Similar presentations


Ads by Google