<Java: Abstract class ,Interface>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • platina
    New Member
    • Mar 2008
    • 2

    <Java: Abstract class ,Interface>

    Hi ,


    What is different b/w Abstract class and Interface.
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    An abstract class is a class which has no constructor and thus cannot be instantiated. Its functions are not assumed to be abstract, they must be declared as such. An interface is an abstract class whose functions are assumed to be abstract even if they are not declared as such. Thus, an abstract class may define a function, but an interface may not (I believe).

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3


      Try googling. It's a question that gets asked all the time and there are many articles on it.

      Comment

      Working...