csci3081/class-repo-public/Exercises/dynamicallocation/duck.cc
Michael Zhang 1ba4536588
f
2018-01-29 17:24:20 -06:00

25 lines
347 B
C++

//
// Duck.cpp
//
// Created by Sarit Ghildayal on 1/24/15.
// Copyright (c) 2015 Sarit Ghildayal. All rights reserved.
//
#include "duck.h"
#include <iostream>
using std::cout;
using std::endl;
Duck::Duck() {
SetName("Duck");
}
Duck::Duck(std::string name) {
SetName(name);
}
void Duck::PerformQuack() {
printf("Quack\n");
}