S
SoAzAppDever
I am new to object oriented design. I am using VS 2005. I was going to
create three classes then have those classes inherited by one class but c#
does not support multiple inheritance. My three base classes would have
properties only and no methods. What would be best to use in this case an
interface or struct or something else?
When adding items to the project I did not see a template for struct or for
an interface, but there is a template for class (.cs).
Originally I had planned to have three base classes:
Owner class, Property Class and Value Class
And a PropertyHistory class that would inherit all the base classes and
PropertyHistory could be added to a collection so I could iterate through it
and sort it.
I wanted the base classes to be reused separately in other areas of the
application.
What is the best way to do this?
create three classes then have those classes inherited by one class but c#
does not support multiple inheritance. My three base classes would have
properties only and no methods. What would be best to use in this case an
interface or struct or something else?
When adding items to the project I did not see a template for struct or for
an interface, but there is a template for class (.cs).
Originally I had planned to have three base classes:
Owner class, Property Class and Value Class
And a PropertyHistory class that would inherit all the base classes and
PropertyHistory could be added to a collection so I could iterate through it
and sort it.
I wanted the base classes to be reused separately in other areas of the
application.
What is the best way to do this?