Introduction to OOP: Chapter 3: Classes and Methods: [next] [previous] [audio] [real] [text]

Class Description of Card

class Card {
		// constructor
	Card (suits, int);

		// access attributes of card	
	colors	color ();
	bool  	faceUp();
	int   	rank();
	suits 	suit();
		// perform actions
	void	draw	(window &, int x, int y);
	void	flip	();
	void	halfdraw (window &, int x, int y);
	bool 	faceup;
	int  	r;	// rank
	suits	s;	// suit
Intro OOP, Chapter 3, Slide 21