-
-
-
-
C# Error - Overload for method
I took a button in form.I have two classes emp and bonus.bonus class is inherited from emp class.If bonus is giving ie in dialog box if we select ‘Yes’ b ie bonus is added to sal and we get ts ie total sal along with eno.If bonus is not given ie in dialog box if we select ‘No’ we need to get only sal along with eno.The following pgm is working fine.class emp { private int...
-
Inheritance
What is the importance of inheritance in c# and why i used?
-
-
Uses of delegates
What is a delegate in C# and when are they commonly used in Windows Forms programming?
-
Delegates and Generics in c#
What is the advantage of using delegates and Generics in c# .
-
C# Calender Days
How to find out how many calender days are there between two dates in c#.net?
-
Unsafe Keyword
Why we use pointer in C#.NET with Unsafe keyword?
-
YIELD Keyword
What is the purpose of YIELD Keyword in C#?
-
Singleton Class
Give an example of inbuilt Singleton Class in .NET.
-
Late and early binding
which one best in late binding and early binding? What is the difference between them ?
-
Properties in C#
What are properties in C#? What are the advantages of using Properties ?
-
Can we write Dotnet Console program in Unix
Can we write Dotnet Console program in Unix ? If yes Give one example.
-
Advantages of static class over class ?
When to use static class and when to use normal class ?
-
Why do I get a syntax error when trying to declare a variable called checked?
The word checked is a keyword in C#.
-
How do I create a Delegate/MulticastDelegate?
C# requires only a single parameter for delegates: the method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of information by just specifying the method's name. For example, let's use System.Threading.ThreadStart: Foo MyFoo = new Foo();ThreadStart del = new ThreadStart(MyFoo.Baz);This means that delegates can...
-
When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.
-
What does the keyword virtual mean in the method definition?
The method can be over-ridden.
C# Interview Questions
Ans