This repository has been archived on 2022-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
patterns-old/lesson_5/Singleton.hpp

23 lines
309 B
C++
Raw Normal View History

2021-11-03 22:35:16 +00:00
/*
* Singleton.hpp
*
* Created on: 4 нояб. 2021 г.
* Author: alexander
*/
#pragma once
#include <string>
class Singleton
{
private:
static Singleton *_instance;
protected:
Singleton();
~Singleton();
public:
static Singleton* Instance();
std::string getDiscription();
};