csci3081/repo-zhan4854/exercises/dynamicallocation/duck.h
Michael Zhang 1ba4536588
f
2018-01-29 17:24:20 -06:00

29 lines
548 B
C++

//
// Duck.h
//
// Created by Sarit Ghildayal on 1/24/15.
// Copyright (c) 2015 Sarit Ghildayal. All rights reserved.
//
#ifndef DUCK_H_
#define DUCK_H_
#include <stdio.h>
#include <string>
class Duck {
public:
// Constructors and Destructor
Duck();
Duck(std::string name);
~Duck() { printf("destroying duck\n"); };
// Mutators and Accessors
void PerformQuack();
std::string GetName() { return m_name_; }
void SetName(std::string name) { m_name_ = name; }
protected:
std::string m_name_;
};
#endif