Is comparator a functional interface?



Is comparator a functional interface?..

Answer / Anu Tyagi

Extension methods in C# allow you to call instance methods on an object as if they were part of the original class. They provide a way to add new functionality to existing classes without modifying the original source code. Extension methods must be declared inside static classes and utilize the `this` keyword before the class name to specify the type they can extend.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are the basic string operations? Explain.

1 Answers  


How many types of constructors are there?

1 Answers  


What are events in C#?

1 Answers   CDC,


Are classes passed by reference in c#?

1 Answers  


Can you override private virtual methods?

5 Answers  


What is a private constructor? where will you use it?

6 Answers   Fulcrum Logic,


What is generic delegates in c#?

1 Answers  


What is expression tree in c#?

0 Answers  


what is the difference between int and Int32?

5 Answers   TCS,


can u tell me any one steps for creatting sn.k

2 Answers  


What is Abstraction?

8 Answers   Google, HCL, IBM, MAHINDRA, Tech Mahindra,


What debugging tools come with the .NET SDK? CorDBG

1 Answers  


Categories