Just to clarify, is it really necessary that all members of the child class are declared above the abstract class above it?
Something like this would be possible:
public abstract class MyParent { public int x { get; set; } } public class MyChild : MyParent { public int x { get; set; } public string MyName { get; private set; } }
This is just an example ... In this case, the MyName property MyName not defined in the parent class, but it is in the child class ... Is this possible?
Thanks in advance!
inheritance c # abstract-class
Girardi
source share