Answer the question
In order to leave comments, you need to log in
Why can't you call events in another class?
I have an abstract class. In it, I defined the events that will be called in the descendant classes. Since different classes will raise these events at different times, I can't call them in the base class. But then it turned out that events can only be called in the class in which they are defined, and even in a derived class they are not available for calling. It is logical that events cannot be called in some other class, but why not in inherited classes?
Answer the question
In order to leave comments, you need to log in
In an abstract class, they make a method that, in turn, calls its own events.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question