Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#include
#include
using namespace std;
class Season
{
string s;
public:
Season() : s("계절") { cout << "계절에 따른 여행지 추천 프로그램" << endl; }
};
class Spring : public Season {
string s;
public:
Spring() : s("봄"), Season() { cout << " 3월~5월 " << endl; }
};
class Summer : public Season {
string s;
public:
Summer() : s("여름"), Season() { cout << " 6월~8월 " << endl; }
};
class Fall : public Season {
string f;
public:
Fall() : f("가을"), Season() { cout << " 9월~10월 " << endl; }
};
class Winter : public Season {
string w;
public:
Winter() : w("겨울"), Season() { cout << " 11월~2월 " << endl; }
};
int main()
{
Spring one;
one.what();
cout<<endl;
Summer two;
two.what();
cout << endl;
Fall three;
three.what();
cout << endl;
Winter four;
four.what();
cout << endl;
return 0;
}