csci3081/duckVisitor/Quack.h
Michael Zhang 1ba4536588
f
2018-01-29 17:24:20 -06:00

46 lines
731 B
C++

#ifndef DUCKS_EXERCISES_QUACK_H_
#define DUCKS_EXERCISES_QUACK_H_
#include <iostream>
#include <stdlib.h>
//-----------------------------------------------
// QUACKING
#define DB_DEFAULT 10
using namespace std;
class QuackBehavior {
protected:
double volume;
public:
QuackBehavior();
virtual void quack();
virtual double getDB();
};
class Quack : public QuackBehavior {
public:
Quack();
void quack();
};
class Mute : public QuackBehavior {
public:
Mute();
void quack();
};
class Squeak : public QuackBehavior {
public:
Squeak();
Squeak(int d);
void quack();
};
class Honk : public QuackBehavior {
// This is a confused swan that honks instead of quacks. Fill this in. <<<<<<<<<<<<<<<<
};
#endif