1 / 5

Designing a Card Game

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 ___________ ____________;.

nedra
Download Presentation

Designing a Card Game

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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!): private String suit; private intpointValue; private __________ ____________; private ___________ ____________; Constructor Methods: accessors & modifiers

  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

More Related