-
All types in C# implicitly derive from
Skill/Topic: BeginnerA) System.Object classB) System classC) System.CSharp class
-
All the .NET languages have the following in common
Skill/Topic: BeginnerA) SyntaxB) KeywordsC) Base Class Library
-
How do you make a class not instantiable
A) Making class as AbstractB) Having a Private constructorC) Making the class sealedD) Both A & B
-
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?
Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.
-
C# collection allows accessing an element using a unique key?
Skill/Topic: IntermediateA) KeySortB) DictC) HashTable
-
-
How many types of Inheritance is there in C#?
HI,
Can youplz tell me how many types of Inheritance is there in C#?
As per my knowledge these are following but i am not sure
-single level
-multi level
-Hierarchical inheritence
-Hybride inheritence.
there one more inheritence but its not suported by C# that is Multiple inheritence.
is it correct ?plz help me.
-
Can you change the value of a variable while debugging a C# application?
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window.
-
-
Divide Two Numbers Without Using Division and Modulus Operator
Write C# code to divide two numbers without using the division and modulus operator
-
-
C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there's no implementation in it.
-
Are private class-level variables inherited?
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.
-
-
CLR
How does a CLR work?
-
WCF WebService and Rest WebService
What is extension of file? What is WCF Webservice? How to call Webservice? How to call method of WebService? What is rest WebServices?
-
Which of the following is the correct way to instantiate an object in C#:
Skill/Topic: BeginnerA) objThis = System.CreateObject( ThisObject);B) objThis = new ThisObject();
-
Debug C# Web Application
How to debug C# Web Application?
-
Advantage of avl tree over binary search tree.
What is advantage using avl tree instead of using binary search tree ?
-
C# Interview Questions
Ans