Answer the question
In order to leave comments, you need to log in
How to make a method in Interface?
I am studying version 8. I am creating a project on the Net Framework. The question arose how to write a method in the Interface, so that I can call it later? I am writing a method, error CS8701 appears.
Error CS8701 Target runtime doesn't support default interface implementation.
int desk(int u)
{
int result = size + u;
return result;
}
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