3 Replies Latest reply on Feb 27, 2002 9:06 AM by 807555

    abstract class or interface ?

    807555
      can any one tell me the difference between an abstract class an an interface. which is more useful ?
        • 1. Re: abstract class or interface ?
          807555
          Try reading these links, once you have and still arent clear email me.


          (this one is a very good explaination, but assumes you are familiar with OO)
          http://www.javaworld.com/javaworld/jw-09-2001/jw-0921-interface.html

          http://www.javaworld.com/javaworld/javaqa/2001-04/03-qa-0420-abstract.html

          http://www.javaworld.com/javaworld/javaqa/2001-08/03-qa-0831-interface.html

          The people at sun will probably ban me for pointing you to another web site :)
          • 2. Re: abstract class or interface ?
            807555
            I do not think that Sun will dislike links to other sites. Why should they?

            Indeed, if you take a look at the page about 1.4.0,
            http://java.sun.com/j2se/
            there are many links to articles on other sites like Java Pro and Java Developers Journal.
            • 3. Re: abstract class or interface ?
              807555
              You could also try searching this site for your question. It has been discussed in other threads as well (I posted a simialar (how do you spell that?) question).