1/27
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Delegate
What is a class in .NET that encapsulates a method?
Delegate
What is a reference type data type that holds a reference method?
Delegate
What is the class that can call any method as long as its signature matches?
delegate keyword
What keyword is used in declaring a delegate on a class?
<access modifier> delegate <return type> <delegate-name> (<parameters>);What is the syntax of Delegate?
new keyword
What keyword is needed in order to instantiate the delegate?
new keyword
Which is associated with the method and supposed to refer on the object?
Generic Delegates
What delegates are not bound to any specific type?
Generic Delegates
What can reference a method that returns and takes parameters of different types?
<access-modifier> <delegate keyword> <X return type> <delegate-varname>(X keyword, args);What is the syntax of Generic Delegate?
[delegates] and [interfaces]
Even if both […] and […] include the declaration, they still have differences.
Delegates
Which refers to having no implementation, they are safe callbacks and only have a declaration?
Delegates
Which can reference any method of a class that provides arguments and return types?
Delegates
Which are used if a class needs more than one implementation of the method?
Delegates
Which are faster to execute but slower to get?
Interfaces
A class that implements […] can implement all the methods associated with it.
Interfaces
Which are used to allow extending some of the objects’ functionality?
Interfaces
Which can implement a method only once?
Interfaces
Which are slower in executing but faster to get?
Events
In C#.NET, what are the usual task initiators?
Event
What is a member of a class that is fired whenever a specific action takes place?
Event Handlers
What do you call the methods that are invoked when an event occurs?
Delegate
What should be declared first before the event declaration?
<access_modifier> <event_keyword> <delegate_name> <event_name>;What is the syntax of Event Declaration?
event_name += delegate_instance;
What is the syntax for adding an event?
add and remove
Which accessors are similar to get and set accessors?
add accessor
Which is used to register a new subscription to an event?
remove accessor
Which is used to unregister a subscription to an event?