. , 2 " " "".
, , " " , , , :
container.hpp
class Container
{
protected:
int GetValue();
void SetValue(int newValue);
size_t GetSize();
void Resize(size_t);
};
, " ":
mcontainers.hpp
#include "containers.hpp";
class MethodContainer: public Container
{
protected:
void Replace(const std::size_t Start, const std::size_t End, const T Value);
void Replace(const std::size_t Start, const std::size_t End, const MyClass Other);
void Insert(const std::size_t Index, const T Value);
void Insert(const std::size_t Index, const MyClass Other);
void Delete(const std::size_t Index);
void Delete(const std::size_t Start, const std::size_t End);
}
, , :
stacks.hpp
#include "containers.hpp";
#include "mcontainers.hpp";
#define pointer void*
class Stack: public MethodContainer
{
public:
void Push(pointer Item);
void Pop();
pointer Extract();
}
AS @Chris , , , " ", .
, /. . Langr. ++.
Altought, ++, ++, , , , .
" " "" " " . "private", .
. (, ), ββ .