Hi Alex,
Yes this is one of the main differences between an interface and an abstract class. Just create it as a normal method:
Code:
public abstract class MyAbstractClass {
// abstract method
abstract void DoSomething();
// normal method
public string GetName() {
return "John";
}
}
If you do not have any functioning methods in you abstract class, you are better off making it an interface instead.
Phil