Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Rep Power

    Default Is it a disadvantage of interface?

    It was given as,
    A class which implements an interface must either implement all methods in the interface, or be an abstract class.
    - since a class which implements an interface has to implement all the methods of that interface, is it not a disadvantage that it has to implement all methods even if we want only some methods to be implemented..

  2. #2
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Newport, WA
    Rep Power


    No its not a disadvantage. Thats the whole point behind an interface, to force you to follow a standard. If you want only a few methods override, then an abstract class is the way to go

Similar Threads

  1. DERS Interface
    By Floetic in forum AWT / Swing
    Replies: 2
    Last Post: 03-09-2008, 11:46 PM
  2. Need help with Document interface
    By cbalu in forum AWT / Swing
    Replies: 1
    Last Post: 12-01-2007, 12:03 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