MustOverride Event

  • Thread starter Thread starter Dave Wurtz
  • Start date Start date
D

Dave Wurtz

All,

Is there a way to force a derived class to contain an event. I have done
this with methods (i.e. Protected MustOverride Sub Test), but can I do
something similar with an event (Protected MustOverride Event MyEvent
doesn't work for obvious reasons)?

Thanks in advance.
Dave
 
If you created an interface, and had the derived class impliment the
interface, then you could force the derived class to have the event in
question.

Did that make sense?

Michael
 
Michael,

Thanks for the suggestion. I was hoping that I wouldn't have to create an
interface just for this, however.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top