csci3081/class-repo-public/labs/lab02/Duck.cpp

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

2018-01-29 23:24:20 +00:00
//
// Duck.cpp
// CSCI3081-Lab1
//
// Created by Sarit Ghildayal on 1/24/15.
// Copyright (c) 2015 Sarit Ghildayal. All rights reserved.
//
#include <iostream>
#include "Duck.h"
using std::cout;
using std::endl;
Duck::Duck() {
}
void Duck::performQuack() {
cout << "QUACK!!" << endl;
}
std::string Duck::getDescription() {
std::string descriptionText = "a plain duck";
return descriptionText;
}