classes

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hi,

class X, subclasses A, B and C inherit X. I don't want class X available to
the outside world, only A, B and C. How do I declare that?
Thanks in advance
Frank
 
Public MustInherit Class X

I think it is always a ggod idea to also protect any constructors in this
class. I.e.

Protected Sub New(...)
 
Whatever the VB equivalent of Java's "Abstract" class - is what you're
looking for - you can't instantiate it, but you can inherit it.
 

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