csci3081/class-repo-public/Exercises/dynamicallocation/duck.cc

26 lines
347 B
C++
Raw Permalink Normal View History

2018-01-29 23:24:20 +00:00
//
// 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");
}