Interfaces and Inheritance

M

Markus

Hello,

i have the following defininitions.

Public Interface iTargetObjBase

Public Interface iTargetObj_Saved
Inherits iTargetObjBase

Public MustInherit Class clsTargetObjBase_ConList
Implements iTargetObjBase

Public MustInherit Class clsTargetObj_Saved_ConList
Inherits clsTargetObjBase_ConList
Implements iTargetObj_Saved

Is it OK that clsTargetObj_Saved_ConList inherits from a
class which implements iTargetObjBase and
implements iTargetObj_Saved which inherits from
ItargetObjBase?

Thank you,

Markus
 
M

mklapp

Hello,

You can have as many interfaces as you want. I do not
think it matters at all which other class uses the
interface. It seems as though that is the whole point of
interfaces. However, speaking to your example (and you
probably already know this) you cannot instantiate a
MustInherits Class.

mklapp
 

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

Top