D
D
deepin2019-08-12 14:53:41
PHP
deepin, 2019-08-12 14:53:41

Why does the parent interfere with the creation of the child?

cognitive question: the parent has a protected constructor, the child (at the moment just an empty class) inherits the parent and when called from the registry, we get an error stating that the protected constructor of the parent is used in the context (of the child, as I understand it)
why the protected constructor of the parent interferes with the creation of the child, if there is no parent in the child?
ps and why child but not son? :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question