B
B
bedolazhka2019-11-30 18:27:29
OOP
bedolazhka, 2019-11-30 18:27:29

Whether correctly understood concept - the abstract method?

1. An abstract parent has an abstract method.
2. The described method is created in one of the descendants.
Does this mean that in the rest of the descendants this method will (should) just be visible with the functionality created in paragraph 2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton R., 2019-11-30
@bedolazhka

Does this mean that in the rest of the descendants this method will (should) just be visible with the functionality created in paragraph 2?

No, in an abstract parent, the method is still empty, and all descendants of this parent are required to implement this method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question