what is the practical difference between an abstract class and an interface?

Discussion in 'Java' started by sankar_battula@yahoo.co.in, Oct 26, 2005.

  1. Guest

    Hi!
    > Actually java soft has provided an interface with the intention that,
    > when we know the method names and we don't know the implementations we
    > will write them in an interface.
    > when we don't know the implementation of some methods of interface and
    > we will put them in abstract class.
    > Even an interface can be converted as an abstract class and
    > viceversa .
    > Then where do interface is getting an EDGE over an abstarct class?
     
    , Oct 26, 2005
    #1
    1. Advertising

  2. Re: what is the practical difference between an abstract class andan interface?

    Hi,

    wrote:
    >>Even an interface can be converted as an abstract class and
    >>viceversa .
    >>Then where do interface is getting an EDGE over an abstarct class?


    In short:

    The advantage of an interface is that you can implement several
    interfaces, but you can only extend one class.

    Ciao,
    Ingo
     
    Ingo R. Homann, Oct 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jakk
    Replies:
    4
    Views:
    12,231
  2. Matthias Kaeppler
    Replies:
    1
    Views:
    443
    R.F. Pels
    May 22, 2005
  3. Eitan M
    Replies:
    3
    Views:
    477
    noname
    Jul 30, 2006
  4. vishist
    Replies:
    3
    Views:
    400
    Tor Iver Wilhelmsen
    Oct 23, 2006
  5. Replies:
    4
    Views:
    822
    Rolf Magnus
    May 17, 2006
Loading...

Share This Page