Interfaces Inheriting from Interfaces


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Interfaces Inheriting from Interfaces

Hybrid View

  1. #1
    Larry Hunter Guest

    Interfaces Inheriting from Interfaces


    Hi

    This, I hope, will be a simple answer. I am builing a not so simple component
    and want to make sure that implementation is kept separated from the interfaces.
    I forget which C++ programmer told me that that was the proper way of doing
    things ... :-))

    Anyway. I have two interfaces

    Public Interface IDBOPerations; and,
    Public Interface IPersonnel

    The code in IPersonnel is below ... Now, when I try to have IPersonnel Implement
    the IDBOperations interface, I get a compile error.

    Can this be done? Can one interface implement (or even inherit from) another
    interface?

    Many Thanks,

    larry





  2. #2
    Jason Sobell iGadget Guest

    Re: Interfaces Inheriting from Interfaces

    On 26 Jan 2003 20:16:45 -0800, Larry Hunter wrote:
    > Hi
    >
    > This, I hope, will be a simple answer. I am builing a not so simple component
    > and want to make sure that implementation is kept separated from the interfaces.
    > I forget which C++ programmer told me that that was the proper way of doing
    > things ... :-))
    >
    > Anyway. I have two interfaces
    >
    > Public Interface IDBOPerations; and,
    > Public Interface IPersonnel
    >
    > The code in IPersonnel is below ... Now, when I try to have IPersonnel Implement
    > the IDBOperations interface, I get a compile error.
    >
    > Can this be done? Can one interface implement (or even inherit from) another
    > interface?
    >
    > Many Thanks,
    >
    > larry


    Hmm... the first problem that springs to mind is that you are in the wrong
    group (most people in here are to busy whinging about MS and .NET to answer
    technical questions), and the second is that the "code below" is missing

    Go to vb.dotnet.technical and post the question there along with your code.

    Cheers,
    Jason

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center