Net Interview Questions

8,170 net interview questions shared by candidates

What is delegate, multicast delegate, relationship between event and delegate, SRP principal, DIP principal How to invoke action using different name in mvc action? Can we declare private method in controller? What is the use of declaring private method in controller? What are the action filters in MVC?
avatar

Software Developer(.NET)

Interviewed at Capgemini

4.2
Sep 22, 2018

What is delegate, multicast delegate, relationship between event and delegate, SRP principal, DIP principal How to invoke action using different name in mvc action? Can we declare private method in controller? What is the use of declaring private method in controller? What are the action filters in MVC?

class Program { static void Main(string[] args) { B obj = new B(); Console.ReadKey(); } } abstract class A { public A() { Console.WriteLine("This is the A class"); //calc(); } public abstract void calc(); } class B : A { public B() { Console.WriteLine("This is the B class"); } public override void calc() { Console.WriteLine("This is the abstract methode"); } } Questions: 1. What will be printed on the console? 2. what will be printed to the console if we remove this "//" before the calc() in the contractor of class A;
avatar

Junior C# and .NET developer

Interviewed at NiCE

3.9
Jun 6, 2024

class Program { static void Main(string[] args) { B obj = new B(); Console.ReadKey(); } } abstract class A { public A() { Console.WriteLine("This is the A class"); //calc(); } public abstract void calc(); } class B : A { public B() { Console.WriteLine("This is the B class"); } public override void calc() { Console.WriteLine("This is the abstract methode"); } } Questions: 1. What will be printed on the console? 2. what will be printed to the console if we remove this "//" before the calc() in the contractor of class A;

Viewing 1291 - 1300 interview questions

Glassdoor has 8,170 interview questions and reports from Net interviews. Prepare for your interview. Get hired. Love your job.