Answer the question
In order to leave comments, you need to log in
How to inherit an abstract class in C#, WPF?
hi guys!
A set of uniform WPF classes (Window, Page or UserControl) require uniform behavior, which would be very elegant and awesome to put into a base abstract class like this:
public abstract class BaseWindow
{
public abstract void AddintionalInit();
public abstract void VisualInit();
public string Converter()
{
return string.Empty; // TODO implement
}
}
Answer the question
In order to leave comments, you need to log in
What's the end question? Such seasoned programmers have no place on this forum.
Honestly, you can just go to the translator. But I'll clarify that c# reports a lack of support for multiple inheritance. What does it mean? This means that you have two class declarations in your code RanksWindow
, one inherits from BaseWindow
, and the second - something else, probably Window
. And you need to specify only one parent. And also learn English, or at least learn how to use a translator. And the most important thing is to write culturally.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question