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_6/Document.hpp

33 lines
541 B
C++
Raw Normal View History

2021-11-04 19:47:40 +00:00
/*
* Document.hpp
*
* Created on: 4 нояб. 2021 г.
* Author: alexander
*/
#pragma once
#include <iostream>
class Document
{
private:
std::string _name;
public:
Document(const std::string name) : _name(name)
{
}
void Open()
{
std::cout << "Документ " << _name << " открыт!" << std::endl;
}
void Paste()
{
std::cout << "Вставлено в документ " << _name << std::endl;
}
std::string getName() const
{
return _name;
}
};