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

    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
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    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, 10:46 PM
  2. Need help with Document interface
    By cbalu in forum AWT / Swing
    Replies: 1
    Last Post: 11-30-2007, 11:03 PM

Posting Permissions

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