If I am designing something which is related with non related classes we go for interface
If we are developing class which is related with hirarecy of classes at that time we go for abstract
example of interface : payment gateways
example of abstract : bird class with aeroplane class
No comments:
Post a Comment