csci3081/repo-zhan4854/exercises/dynamicallocation/duck.cc

20 lines
335 B
C++
Raw Normal View History

2018-01-29 17:24:20 -06: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"); }