Website Summary Files Commits Branches @commit @diff @stats
path: root / Polymorphism / Farm(cloneFunction) / source.cpp
blob: d6fcfc962e95b5e1613ff1d42b2bc0f694c17c06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "Farm.hpp"

using namespace std;
int main()
{
    Farm f(4);
    f.AddCat("Cat1");
    f.AddCat("Cat2");
    f.AddCow("Cow1");
    f.AddDog("Dog1");
    
    f.RoarAll();
}