Results 1 to 8 of 8

Thread: Diff B/W Interface & Abstract class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    Re: Diff B/W Interface & Abstract class

    you can define the body of abstract method in abstract class but u cannot define the body of method in interface.


  2. #2
    Junior Member
    Join Date
    Jul 2007
    Answers
    3

    Re: Diff B/W Interface & Abstract class

    Hi Sree,

    Abstract class and interfaces are completely different.

    1) In an abstract class, you may also have some concrete methods( fully implemented. It can have all its methods as concrete, yet be declared as abstract) , but in an interface, all the methods ought to be abstract.

    2)Abstarct class can never be instantiated, but you can indirectly instantiate an interface by instantiating the class which implements it and then use the its methods.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact