Results 1 to 2 of 2

Thread: Is there any benefit to extend both Interface and abstract class

  1. #1
    Geek_Guest
    Guest

    Is there any benefit to extend both Interface and abstract class

    Suppose I have an Interface A, and an Abstract class B which implements Interface A. Now I extend this abstract class B to a normal class C. Is there any need to implement the Interface A here also. Can any on please look on this? Is there any benefit to extend both the Interface A and the the abstract class B which implements A.?

    Question asked by visitor Hani


  2. #2
    Junior Member
    Join Date
    Jun 2007
    Answers
    9

    Re: Is there any benefit to extend both Interface and abstract class

    hi hani
    good question.
    if class C extends Class B(which is implementing intrface A according to it's requirement) then class C gets all the features of class B and again if class C implements interface A then C can implement it own features..

    so now C will get both the class B features and it's own features..
    now i think u got something

    thanks..


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