-
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
-
Junior Member
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
-
Forum Rules