When should I use interfaces and other times subclasses?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: When should I use interfaces and other times subclasses?

Threaded View

  1. #1
    Join Date
    Dec 2010
    Posts
    634

    When should I use interfaces and other times subclasses?

    Say a parrot and an human are both a whistler
    and they also some animals

    but you would have
    Code:
    class Human extends Animal implements Whistler
    Animal - position 1
    Whistler - position 2
    How do you decide putting which entities at which positions?
    thanks
    Jack
    Last edited by lucky6969b; September 4th, 2012 at 03:24 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center