CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <string>
#include <vector>
#include <memory>
using namespace std;
/*
Code By: Zeke Williams
Date: September 6, 2017
Description:
Obviously, I'm not working on an
RPG-Game at all ;). This is just
me working out how an inventory
system would actually work.
JUST HIT RUN
*/
class Item {
protected:
string name;
public:
Item(const string name): name(name) {};
virtual ~Item() {};
virtual Item* Clone() const = 0;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run