26 lines
622 B
C
26 lines
622 B
C
|
//
|
||
|
// spade.h -- CPE 212-01, Fall 2010 -- Project02 -- Classes
|
||
|
//
|
||
|
// DO NOT MODIFY OR SUBMIT THIS FILE!!!
|
||
|
//
|
||
|
|
||
|
#ifndef SPADE_H
|
||
|
#define SPADE_H
|
||
|
|
||
|
#include "blackcard.h"
|
||
|
|
||
|
class Spade : public BlackCard
|
||
|
{
|
||
|
private:
|
||
|
// No additional private members
|
||
|
|
||
|
public:
|
||
|
// Constructors
|
||
|
Spade(int v); // Creates a black spade card with value v
|
||
|
|
||
|
string Description() const; // Outputs card characteristics - value, color, suit
|
||
|
// Hint: use base class Description method to generate part of
|
||
|
// the description and append the suit information at the end
|
||
|
};
|
||
|
|
||
|
#endif
|