L
L
LiptonOlolo2020-03-17 14:12:06
C++ / C#
LiptonOlolo, 2020-03-17 14:12:06

Why is the chart not being completed?

The problem is that the class constructor does not completely make connections, why?
Logically, he must also refer to IDetail from 2 classes, but does not do this, but simply signs it from above. How to fix?
5e70b042a9305561883325.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yuopi, 2020-03-17
@LiptonOlolo

Classes do not refer to or inherit an interface, they implement it, so you have an implementation listed next to each class.
If you want communication, then instead of an interface, create an abstract class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question