C# Delegates and Events | Theory vs Real interview answer — Transcript
Full transcript
- 0:01Good morning, good afternoon, good
- 0:03evening from whichever location you are
- 0:04watching this video. A very very warm
- 0:06welcome to Quespon channel and in this
- 0:09video we'll be discussing about what
- 0:12happens in actual interviews when it
- 0:14comes to delegates and events right and
- 0:18the whole goal of creating this video is
- 0:20that
- 0:21to make you understand that when you
- 0:23talk about interview preparation when
- 0:25you talk about clearing interviews right
- 0:27it is not just a technical thing
- 0:29technical thing must be 70% but 30% it
- 0:33is psychological 30% person it depends
- 0:35on that what kind of answers you are
- 0:37giving to the interviewer and what kind
- 0:40of cross questions the interviewer asks
- 0:42you right so what this is what this
- 0:43video is all about and again before I
- 0:46start this video if you go and if you
- 0:47share this video on your LinkedIn you
- 0:49will get this beautiful shear interview
- 0:51question PDF right so go ahead share the
- 0:54link and mail us at questpondqubond.com
- 0:57and we will give you this beautiful book
- 1:00out there so let us get started when
- 1:02this question comes up in the interview
- 1:04Many developers answer that delegate is
- 1:08a pointer to a function. Now this answer
- 1:11is actually technically very right but
- 1:14it is very very academic. The next cross
- 1:17question that the interviewer can hit
- 1:19you is with that why do I have to call
- 1:22the method through a pointer? Why do I
- 1:24have to invoke the method through a
- 1:25pointer? I can invoke it directly and
- 1:28this way what will happen is the
- 1:29interviewer will will go in a different
- 1:30tangent altogether. So it is better to
- 1:33answer some practical implementation out
- 1:36here right that's what impresses the
- 1:38interviewer if you're going to go around
- 1:40with your academic answers right the
- 1:42interviewer will never connect with you
- 1:44so for example if you say here delegate
- 1:46is a call back so for example you have a
- 1:48caller and you have a colleague and let
- 1:50us say that the caller and the colleague
- 1:52are in a different process in a
- 1:54different thread um you know and they
- 1:57want to have communication between them
- 1:59then must be it makes sense Right? So
- 2:03when you start with the right answer,
- 2:05when you start with a practical answer,
- 2:07the interviewer starts connecting with
- 2:09you. So answering academic answers,
- 2:12right, just makes the interview very
- 2:15mundane. Uh another kind of answer which
- 2:17comes around delegates is that delegates
- 2:20are like abstraction. Now remember when
- 2:23it comes to abstraction, right,
- 2:24interfaces are gods of abstraction
- 2:26frankly. So
- 2:29when you actually put ahead this answer
- 2:31saying that delegate is like abstract
- 2:33over any kind of a method like for
- 2:35example you have an method which is
- 2:37operation it takes two number now inside
- 2:40that it can do an addition or it can do
- 2:42a multiplication or it can do something
- 2:44like that. So when you say that delegate
- 2:46is an abstraction over a method
- 2:49signature, the interface can take you
- 2:51into a different loop and ask you that
- 2:53then what what is so bad in interfaces
- 2:56because the whole goal of interfaces is
- 2:58abstraction, abstraction and
- 3:00abstraction. So again this answer is
- 3:03technically right but it is not the main
- 3:06thing. It is more of a byproduct. It is
- 3:10a byproduct answer. Again when the
- 3:12interviewer asks about saying that where
- 3:14have you used delegates developers try
- 3:17to create you know some kind of a
- 3:19unnatural artificial forced answers like
- 3:22I have used delegates here I have used
- 3:24delegates there right but frankly ask
- 3:26your heart and write down on the
- 3:28comments below that many many of us
- 3:30don't even use delegates definitely we
- 3:32use different forms of delegates
- 3:34probably we use events we use action we
- 3:37use funk we use predicate we use lambda
- 3:40expression
- 3:41But directly delegates is a very rare
- 3:44scenario right. [snorts] So when you are
- 3:47also truthful and more natural right the
- 3:50interviewer does connect to you. So when
- 3:52you say that no like I have not used
- 3:53delegates but yes when I double click on
- 3:55a button I see a plus equal to which is
- 3:57an event right. So try to answer again
- 4:01you know answers which are more
- 4:02practical in nature wherein you get more
- 4:06connected with the interviewer rather
- 4:08than trying to form up an unnatural and
- 4:11an artificial answer and this whole
- 4:13discussion of delegates goes into a
- 4:15different tangent into a different loop
- 4:17when the question of events come in and
- 4:20when the question of events come in
- 4:21right the the developers answer so
- 4:24confidently so sophisticatedly right
- 4:27saying that okay what is the Event event
- 4:29is a encapsulation over delegates. Event
- 4:32is a pure publisher subscriber
- 4:35mechanism. Events actually help you to
- 4:37implement a broadcasting kind of an
- 4:39architecture. So remember all of these
- 4:41answers are right. The only point is
- 4:43that are you able to explain the
- 4:45interviewer what exactly is a pure
- 4:47publisher subscriber mechanism that is
- 4:49important right? So yes, when you're
- 4:52answering these sophisticated
- 4:54when you're using these sophisticated
- 4:56vocabulary, these sophisticated
- 4:57technical vocabulary, make sure that you
- 5:00are able to communicate with the
- 5:02interviewer that what exactly are these
- 5:05words and the interviewer can take you
- 5:07for a ride. Specifically, if you look at
- 5:09the multiccast delegate and event right,
- 5:11they look very similar because in case
- 5:13of multiccast delegate also you can do a
- 5:15plus equal to and a minus equal to. You
- 5:17can have a publisher subscriber
- 5:19mechanism and in events also you can do
- 5:21that right. So if you know the answer
- 5:22write down on the comments down below
- 5:24that what is the difference between a
- 5:25multiccast delegate and a event remember
- 5:28I'll just give you the answer the answer
- 5:30is pure
- 5:32pure publisher subscriber mechanism and
- 5:35remember if ever those four rudra aars
- 5:38of delegates that is funk lambda
- 5:43action predicate if all of these come in
- 5:46right then it becomes very very
- 5:48different scene altogether you will see
- 5:50a huge thunder dance all together.
- 5:52Right? So remember that all of these
- 5:54four things or even the five things
- 5:56events, funk, lambda, action, predicate
- 6:00are nothing but they are derived from
- 6:03delegates. So that is very important to
- 6:05remember. The whole point of this video
- 6:06is that to make you realize that when
- 6:09interviews are happening, right,
- 6:11interviews should get converted into a
- 6:13conversation. It should not be Q&A,
- 6:16right? It should not be having more
- 6:18academic answers. If you really want to
- 6:21win the interviewer's heart, right? Your
- 6:24answers should be practical. Your
- 6:26answers should not lead to more cross
- 6:28questions. For example, I talked about
- 6:30delegate. If you say delegate is a
- 6:31pointer to a function, then there is
- 6:33another question and another question.
- 6:34But when you say delegate is a call back
- 6:36must be it just hits you know where it
- 6:39wants to hit, right? So try to see that
- 6:42in in the interview try to make an
- 6:44interview as a conversation. So that
- 6:46brings us to the end of this video. My
- 6:48whole goal of this video was to give you
- 6:50an essense of how interviews actually
- 6:53happen and sometimes we don't even know
- 6:56that the answers what you're giving out
- 6:58there is it really impressing the
- 7:01interviewer or is it really going in a
- 7:03loop right so I hope that you got the
- 7:04context of this video uh and thank you
- 7:07very much and remember you can go to
- 7:08quest.com you can look at our videos
- 7:10what we have you can look at our live
- 7:11trainings what are happening remember
- 7:13one of the live trainings which I'm
- 7:14coming around at this moment is
- 7:16interview preparation course right so
- 7:18must be you can have a look at that so
- 7:19we have interview preparation course we
- 7:21have the Azure course we have
- 7:22microservices uh we have the IML course
- 7:25for C# developers we have so many other
- 7:28courses out there go ahead go to
- 7:30queston.com and you can chat over there
- 7:32thank you very much happy learning happy
- 7:34job hunting
About this transcript
This page contains the full transcript of C# Delegates and Events | Theory vs Real interview answer by Questpond, generated from the public captions YouTube serves with the video. The transcript has 1,343 words across 201 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.