As long as there aren’t any extra instance variables, any subclass can proxy itself as its superclass with a single call. Each class that inherits from the superclass, no matter where it comes from, will now inherit from the proxied subclass. Calling a method in the superclass will actually call the method in the subclass. For libraries where many objects inherit from a base class, proxying the superclass can be all that is needed.
Liked By
Write Answer
Define Proxy
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
20-Sep-2015