N
N
Nekit Medvedev2020-12-09 08:53:30
C++ / C#
Nekit Medvedev, 2020-12-09 08:53:30

When studying the factory method, I saw a strange structure, what is it?

class Horseman: public Warrior
{
  public:    
    void info() { 
      cout << "Horseman" << endl; 
    }

Access modifier after class name, what does it mean? Or what is it called?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-12-09
@NIKROTOS

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 question

Ask a Question

731 491 924 answers to any question