csharp

csharp

  • NA
  • 2
  • 0

Interface chaining (?) - Is it acceptable.

Jan 18 2006 3:41 PM
I cannot find any information on this - perhaps because it has a name/term I am not aware of.

Basically I have the following structure:

IBaseClassInterface (methods A, B)
IInheritedClassInterface (methods C)

BaseClass <implements> IBaseClassInterface (and the methods A and B)
InheritedClass <inherits> BaseClass <implements> IInheritedClassInterface (and method C)


now if I use the IInheritedClassInterface I cannot access methods A and B.

However: I found that I can make IInheritedClassInterface "inherit" IBaseClassInterface, and can then access the base methods A and B.

I call it interface chaining, but is it a good design practice?  If not why?

Cheers,

Andrew

Answers (1)