Interfaces and Inheritance

  • Thread starter Thread starter Markus
  • Start date Start date
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
 
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
 
Back
Top