Top "Delegation" questions

A delegate is a type that references a method

Implementing multiple interfaces with Java - is there a way to delegate?

I need to create a base class that implements several interfaces with lots of methods, example below. Is there an …

java interface delegation
Delegates in swift?

How does one go about making a delegate, i.e. NSUserNotificationCenterDelegate in swift?

delegates swift delegation
What is a C++ delegate?

What is the general idea of a delegate in C++? What are they, how are they used and what are …

c++ delegates delegation
Why aren't superclass __init__ methods automatically invoked?

Why did the Python designers decide that subclasses' __init__() methods don't automatically call the __init__() methods of their superclasses, as …

python inheritance subclass delegation superclass
What is the purpose of a delegation pattern?

I was looking through the source to SensorManager in Android and found that when you register a SensorEventListener the SensorManager …

java android design-patterns delegation
Distinguishing between delegation, composition and aggregation (Java OO Design)

I am facing a continuing problem distinguishing delegation, composition and aggregation from each other, and identifying the cases where it's …

java oop aggregation composition delegation
Examples of Delegates in Swift

I have been trying to learn how delegation with protocols work. I understood everything, but I can't think of when …

swift design-patterns delegates protocols delegation
When to use delegation instead of inheritance?

Could someone please explain when would I want to use delegation instead of inheritance?

oop inheritance delegation
What is meant by .delegate=self?

Could anyone explain the meaning of someViewController.delegate = self and self.delegate? Where do they help us?

objective-c cocoa delegates protocols delegation
Delegating constructors in c++ () or {}

I read this link of Stroustrup with the following code: class X { int a; public: X(int x) { if (0<…

c++ c++11 constructor delegation