TRANSCRIPTEnglish

C# Delegates and Events | Theory vs Real interview answer

7m 37s1,343 words201 segmentsEnglish

FULL TRANSCRIPT

0:01

Good morning, good afternoon, good

0:03

evening from whichever location you are

0:04

watching this video. A very very warm

0:06

welcome to Quespon channel and in this

0:09

video we'll be discussing about what

0:12

happens in actual interviews when it

0:14

comes to delegates and events right and

0:18

the whole goal of creating this video is

0:20

that

0:21

to make you understand that when you

0:23

talk about interview preparation when

0:25

you talk about clearing interviews right

0:27

it is not just a technical thing

0:29

technical thing must be 70% but 30% it

0:33

is psychological 30% person it depends

0:35

on that what kind of answers you are

0:37

giving to the interviewer and what kind

0:40

of cross questions the interviewer asks

0:42

you right so what this is what this

0:43

video is all about and again before I

0:46

start this video if you go and if you

0:47

share this video on your LinkedIn you

0:49

will get this beautiful shear interview

0:51

question PDF right so go ahead share the

0:54

link and mail us at questpondqubond.com

0:57

and we will give you this beautiful book

1:00

out there so let us get started when

1:02

this question comes up in the interview

1:04

Many developers answer that delegate is

1:08

a pointer to a function. Now this answer

1:11

is actually technically very right but

1:14

it is very very academic. The next cross

1:17

question that the interviewer can hit

1:19

you is with that why do I have to call

1:22

the method through a pointer? Why do I

1:24

have to invoke the method through a

1:25

pointer? I can invoke it directly and

1:28

this way what will happen is the

1:29

interviewer will will go in a different

1:30

tangent altogether. So it is better to

1:33

answer some practical implementation out

1:36

here right that's what impresses the

1:38

interviewer if you're going to go around

1:40

with your academic answers right the

1:42

interviewer will never connect with you

1:44

so for example if you say here delegate

1:46

is a call back so for example you have a

1:48

caller and you have a colleague and let

1:50

us say that the caller and the colleague

1:52

are in a different process in a

1:54

different thread um you know and they

1:57

want to have communication between them

1:59

then must be it makes sense Right? So

2:03

when you start with the right answer,

2:05

when you start with a practical answer,

2:07

the interviewer starts connecting with

2:09

you. So answering academic answers,

2:12

right, just makes the interview very

2:15

mundane. Uh another kind of answer which

2:17

comes around delegates is that delegates

2:20

are like abstraction. Now remember when

2:23

it comes to abstraction, right,

2:24

interfaces are gods of abstraction

2:26

frankly. So

2:29

when you actually put ahead this answer

2:31

saying that delegate is like abstract

2:33

over any kind of a method like for

2:35

example you have an method which is

2:37

operation it takes two number now inside

2:40

that it can do an addition or it can do

2:42

a multiplication or it can do something

2:44

like that. So when you say that delegate

2:46

is an abstraction over a method

2:49

signature, the interface can take you

2:51

into a different loop and ask you that

2:53

then what what is so bad in interfaces

2:56

because the whole goal of interfaces is

2:58

abstraction, abstraction and

3:00

abstraction. So again this answer is

3:03

technically right but it is not the main

3:06

thing. It is more of a byproduct. It is

3:10

a byproduct answer. Again when the

3:12

interviewer asks about saying that where

3:14

have you used delegates developers try

3:17

to create you know some kind of a

3:19

unnatural artificial forced answers like

3:22

I have used delegates here I have used

3:24

delegates there right but frankly ask

3:26

your heart and write down on the

3:28

comments below that many many of us

3:30

don't even use delegates definitely we

3:32

use different forms of delegates

3:34

probably we use events we use action we

3:37

use funk we use predicate we use lambda

3:40

expression

3:41

But directly delegates is a very rare

3:44

scenario right. [snorts] So when you are

3:47

also truthful and more natural right the

3:50

interviewer does connect to you. So when

3:52

you say that no like I have not used

3:53

delegates but yes when I double click on

3:55

a button I see a plus equal to which is

3:57

an event right. So try to answer again

4:01

you know answers which are more

4:02

practical in nature wherein you get more

4:06

connected with the interviewer rather

4:08

than trying to form up an unnatural and

4:11

an artificial answer and this whole

4:13

discussion of delegates goes into a

4:15

different tangent into a different loop

4:17

when the question of events come in and

4:20

when the question of events come in

4:21

right the the developers answer so

4:24

confidently so sophisticatedly right

4:27

saying that okay what is the Event event

4:29

is a encapsulation over delegates. Event

4:32

is a pure publisher subscriber

4:35

mechanism. Events actually help you to

4:37

implement a broadcasting kind of an

4:39

architecture. So remember all of these

4:41

answers are right. The only point is

4:43

that are you able to explain the

4:45

interviewer what exactly is a pure

4:47

publisher subscriber mechanism that is

4:49

important right? So yes, when you're

4:52

answering these sophisticated

4:54

when you're using these sophisticated

4:56

vocabulary, these sophisticated

4:57

technical vocabulary, make sure that you

5:00

are able to communicate with the

5:02

interviewer that what exactly are these

5:05

words and the interviewer can take you

5:07

for a ride. Specifically, if you look at

5:09

the multiccast delegate and event right,

5:11

they look very similar because in case

5:13

of multiccast delegate also you can do a

5:15

plus equal to and a minus equal to. You

5:17

can have a publisher subscriber

5:19

mechanism and in events also you can do

5:21

that right. So if you know the answer

5:22

write down on the comments down below

5:24

that what is the difference between a

5:25

multiccast delegate and a event remember

5:28

I'll just give you the answer the answer

5:30

is pure

5:32

pure publisher subscriber mechanism and

5:35

remember if ever those four rudra aars

5:38

of delegates that is funk lambda

5:43

action predicate if all of these come in

5:46

right then it becomes very very

5:48

different scene altogether you will see

5:50

a huge thunder dance all together.

5:52

Right? So remember that all of these

5:54

four things or even the five things

5:56

events, funk, lambda, action, predicate

6:00

are nothing but they are derived from

6:03

delegates. So that is very important to

6:05

remember. The whole point of this video

6:06

is that to make you realize that when

6:09

interviews are happening, right,

6:11

interviews should get converted into a

6:13

conversation. It should not be Q&A,

6:16

right? It should not be having more

6:18

academic answers. If you really want to

6:21

win the interviewer's heart, right? Your

6:24

answers should be practical. Your

6:26

answers should not lead to more cross

6:28

questions. For example, I talked about

6:30

delegate. If you say delegate is a

6:31

pointer to a function, then there is

6:33

another question and another question.

6:34

But when you say delegate is a call back

6:36

must be it just hits you know where it

6:39

wants to hit, right? So try to see that

6:42

in in the interview try to make an

6:44

interview as a conversation. So that

6:46

brings us to the end of this video. My

6:48

whole goal of this video was to give you

6:50

an essense of how interviews actually

6:53

happen and sometimes we don't even know

6:56

that the answers what you're giving out

6:58

there is it really impressing the

7:01

interviewer or is it really going in a

7:03

loop right so I hope that you got the

7:04

context of this video uh and thank you

7:07

very much and remember you can go to

7:08

quest.com you can look at our videos

7:10

what we have you can look at our live

7:11

trainings what are happening remember

7:13

one of the live trainings which I'm

7:14

coming around at this moment is

7:16

interview preparation course right so

7:18

must be you can have a look at that so

7:19

we have interview preparation course we

7:21

have the Azure course we have

7:22

microservices uh we have the IML course

7:25

for C# developers we have so many other

7:28

courses out there go ahead go to

7:30

queston.com and you can chat over there

7:32

thank you very much happy learning happy

7:34

job hunting

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.