Question
class csharp
{
void abc()
{
console.writeline("A:Just do it!");
}
}
a.
csharp c = new csharp();
delegate void d = new del(ref abc);
d();
b.
delegate void del();
del d;
csharp s = new csharp();
d = new del(ref s.abc);
d();
c.
csharp s = new csharp();
delegate void del = new delegate(ref abc);
del();
d.
None of the mentioned
Posted under C# programming
del d;
csharp s = new csharp();
d = new del(ref s.abc);
d();
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following is the correct way to call the subroutine function abc() of the given class csharp given below?
Similar Questions
Discover Related MCQs
Q. Choose the statements which makes delegate in C#.NET different from a normal class?
View solution
Q. Which of the following are the correct statements about delegates?
View solution
Q. Incorrect statements about delegates are?
View solution
Q. Select the modifiers which control the accessibility of the delegate:
View solution
Q. What is meant by the term generics?
View solution
Q. Are generics in C# are same as the generics in java and templates in C++?
View solution
Q. Choose the advantages of using generics?
View solution
Q. What does the following code block defines?
class Gen<T>
{
T ob;
}
View solution
Q. What does the following code set defines?
public Gen(T o)
{
ob = o;
}
View solution
Q. Select the type argument of an open constructed type?
View solution
Q. Which among the given classes is present in System.Collection.Generic.namespace?
View solution
Q. Which of these is a correct way of defining generic method?
View solution
Q. Which of these type parameters is used for generic methods to return and accept any type of object?
View solution
Q. Which of given statements are valid about generics in .NET Framework?
View solution
Q. Which of the following is a valid statement about generic procedures in C#.NET are?
View solution
Q. Which among the given classes represents System.Collections.Generic namespace?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!