Home > DeveloperSection > Interviews > Define Proxy

Posted on    September-20-2015 11:48 PM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  378  View(s)
Rate this:

Jayne Spooner
Jayne Spooner

Total Post:3

Points:15
Posted on    September-20-2015 11:48 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick