I have a problem that I would appreciate any help with.

I am creating a Business Object Abstract Class that all the business
objects in my application with inherit. This class contains common
functionality such as getting a business object given a unique identifier,
providing IsDirty - IsNew methods etc....

The problem is that I want each business object to implements a shared
function GetList which will return a HashTable of all of those business
objects for populating list boxes etc...

If I could provide this method in the Business Object Abstract Class or
define an Interface with this method then I could create a generic routine
to populate a list box for a Business Object. However as you know, you
cannot declare a shared method in an interface, and you cannot declare a
shared must override method in an Abstract Class.

I don't understand why this restriction exists or how I can get around it.
All I can do is implement this method in each of the subclasses of the
Abstract Class, however there is no contract forcing other developers to
implement this method.

Once again any help would be much appreciated, for this has bugged me no
end

Reply via email to