PC Review


Reply
Thread Tools Rate Thread

Base class member implement interface member

 
 
Armin Zingler
Guest
Posts: n/a
 
      5th Feb 2006
Hi group,

how can I have a base class member implement an interface member?

Example:
class a
sub Member1
end sub
end class

interface I
sub member1
sub member2
end interface

class b
inherits a
implements I

sub member2 implements I.member2
end sub

mybase.member1 implements I.member1 <===
end class

The last (not compilable) line shows what's my intention: The base class
contains the implementation of Member1. As B is derived from A, it should be
possible to have (the inherited) Sub Member1 implement I.Member1 because
Member1 is also a part of class B. Isn't it possible?

Currently I have to write the implementation in B and delegate the call to
MyBase:

sub I_member1 implements I.Member1
mybase.member1
end sub

The more members, the more work... And it gets (a little) slower due to
delegation.


Armin

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Error: InterfaceDictionary ... does not implement interface member ... Rich P Microsoft C# .NET 0 1st Jul 2010 09:08 PM
Error: InterfaceDictionary ... does not implement interface member ... Rich P Microsoft C# .NET 0 1st Jul 2010 05:46 PM
Cannot implement an interface member because it is not public Author Microsoft C# .NET 3 30th Oct 2008 04:27 PM
abstract class 'does not implement interface member ...' Ben Voigt [C++ MVP] Microsoft C# .NET 52 25th Jun 2007 02:13 PM
pointer to member conversion to a pointer to member that is a member's base class Vladimir_petter Microsoft VC .NET 12 19th Aug 2004 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:09 AM.