S
S
SVAY2022-01-09 13:28:12
typescript
SVAY, 2022-01-09 13:28:12

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 question

Ask a Question

731 491 924 answers to any question