CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    15

    Question Some help please

    A subclass can inherit "interface" or "implementation" from a superclass. How do inheritance hierarchies designed for inheriting interface, differ from those designed for inheriting implementation (behavioral characteristics of a class)?

  2. #2
    Join Date
    Nov 2007
    Posts
    2

    Re: Some help please

    Hi pikkas, it is easy. Class can extend only one superclass, however it can implements several interfaces. Class inherits all superclasses interfaces, as well. Methods defined by interface have public access modifier. Inheriting of interface's implementation follows overriding rules.

    Extending interfaces follows same rules as extending of class except interface can extend more than one interface. Note that, java class can extend only one class.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured