Download presentation
Presentation is loading. Please wait.
Published byBranden Ferguson Modified over 9 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.