Answer the question
In order to leave comments, you need to log in
When studying the factory method, I saw a strange structure, what is it?
class Horseman: public Warrior
{
public:
void info() {
cout << "Horseman" << endl;
}
Answer the question
In order to leave comments, you need to log in
https://en.cppreference.com/w/cpp/language/class
https://en.cppreference.com/w/cpp/language/derived...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question