Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Use Interfaces
Message
 
To
10/01/2008 02:32:10
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01278205
Message ID:
01280877
Views:
27
Hi Bonnie, I've been following this thread and thought I'd throw this into the arena, is the following interface inheritance "the done thing" when designing interfaces ? ( code copied from your example )
public class LivingThings
{
    public virtual void FeedMe()
    { 
        
    }
    
}

public interface ICircus
{
    void PerformTricks();
    void TalkToMe();
}
public interface IFarm : ICircus
{
    void EatMe();
   
}
public class TrickGoats : LivingThings,IFarm
{
    public override void FeedMe()
    {

    }

    public void PerformTricks() { } 
    public void TalkToMe() { }
    public void EatMe() { }
}
many thanks in advance
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform