Hi!
I am creating a set of static classes, one class for each "case" I have. The class should do and perform certain things, and the different static classes are doing different things.
However, in each static class there must be 3 properties (id, name and description) and I thought I just create an abstract class and define them there and let all the static classes (ie the cases) inherit from that and thus forcing them to implement the properties.
This, however, cannot be done.
Question is - is there a way for a static class to inherit from another class? I need to defined properties that they MUST implement.
I am creating a set of static classes, one class for each "case" I have. The class should do and perform certain things, and the different static classes are doing different things.
However, in each static class there must be 3 properties (id, name and description) and I thought I just create an abstract class and define them there and let all the static classes (ie the cases) inherit from that and thus forcing them to implement the properties.
This, however, cannot be done.
Question is - is there a way for a static class to inherit from another class? I need to defined properties that they MUST implement.
Comment