Is Category in Objective C and Default Methods in Java 8 equivalent? -
similar question asked here doesn't discuss default methods.
in objective c category lets extend existing class adding behaviour (even if don't have original implementation source code) , makes available instances of original class. in java 8 default methods introduced enabled add new functionality interfaces of libraries. equivalent each other? if not, how different?
Comments
Post a Comment