Answer the question
In order to leave comments, you need to log in
How to make an optional abstract method with a condition?
There are two optional abstract methods: one, two. What needs to be done is to make method two mandatory when there is an implementation of method one.
protected abstract one?(): void;
// Нужно что бы метод стал обязательным если определён метод выше
protected abstract two?(): void;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question