C
Chris Zopers
Hello,
I would like to know if it's possible to mark a method as abstract in a
non-abstract class, like this:
public class Test
{
public string NormalMethod()
{
return "somevalue";
}
public abstract string AbstractMethod();
}
When I compile this code I get an error indicating that an abstract
method in a nonabstract class is not possible. But I would like to
inherit from the class and all of it's functionality, only one method
has to be overriden by the inheriting class. Can I do this maybe in an
other way?
Greetings,
Chris
I would like to know if it's possible to mark a method as abstract in a
non-abstract class, like this:
public class Test
{
public string NormalMethod()
{
return "somevalue";
}
public abstract string AbstractMethod();
}
When I compile this code I get an error indicating that an abstract
method in a nonabstract class is not possible. But I would like to
inherit from the class and all of it's functionality, only one method
has to be overriden by the inheriting class. Can I do this maybe in an
other way?
Greetings,
Chris