<< < 29 30 31 32 33 34 35 36 37 38 39 > >>   Sort: Rank

What is ENUM
What is ENUM ? It’s used to define constants.
2007-10-23, 5519👍, 0💬

What are queues and stacks
What are queues and stacks ? Queue is for first-in, first-out (FIFO) structures. Stack is for last-in, first-out (LIFO) structures.
2007-10-23, 4896👍, 0💬

What is ArrayList
What is ArrayList ? Array is whose size can increase and decrease dynamically. Array list can hold item of different types. As Array list can increase and decrease size dynamically you do not have to use the REDIM keyword. You can access any item in array using the INDEX value of the array position.
2007-10-23, 5391👍, 0💬

Where are all .NET Collection classes located
Where are all .NET Collection classes located ? System.Collection namespace has all the collection classes available in .NET.
2007-10-23, 7400👍, 0💬

What is the use of “OverRides” and “Overridable” keywords
What is the use of “OverRides” and “Overridable” keywords ? Overridable is used in parent class to indicate that a method can be overridden. Overrides is used in the child class to indicate that you are overriding a method
2007-10-23, 6136👍, 0💬

What is Dispose method in .NET
What is Dispose method in .NET ? .NET provides “Finalize” method in which we can clean up our resources. But relying on this is not always good so the best is to implement “Idisposable” interface and implement the “Dispose” method where you can put your clean up routines.
2007-10-23, 5178👍, 0💬

What are shared (VB.NET)/Static(C#) variables
What are shared (VB.NET)/Static(C#) variables? Static/Shared classes are used when a class provides functionality which is not specific to any instance. In short if you want an object to be shared between multiple instances you will use a static/Shared class. Following are features of Static/Shared ...
2007-10-23, 7045👍, 0💬

What does virtual keyword mean
What does virtual keyword mean ? They signify that method and property can be overridden.
2007-10-23, 5605👍, 0💬

What is the difference between Class and structure’s
What is the difference between Class and structure’s ? Following are the key differences between them :- ? Structure are value types and classes are reference types. So structures use stack and classes use heap. ? Structures members can not be declared as protected, but class members can be. You can...
2007-10-23, 6805👍, 0💬

What are similarities between Class and structure
What are similarities between Class and structure ? Following are the similarities between classes and structures :- ? Both can have constructors, methods, properties, fields, constants, enumerations, events, and event handlers. ? Structures and classes can implement interface. ? Both of them can ha...
2007-10-23, 4840👍, 0💬

Do interface have accessibility modifier
Do interface have accessibility modifier? All elements in Interface should be public. So by default all interface elements are public by default.
2007-10-23, 5337👍, 0💬

What is the use of “MustInherit” keyword in VB.NET
What is the use of “MustInherit” keyword in VB.NET ? If you want to create a abstract class in VB.NET it’s done by using “MustInherit” keyword.You can not create an object of a class which is marked as “MustInherit”. When you define “MustInherit” keyword for class you can only use the class by i...
2007-10-23, 5203👍, 0💬

Can you prevent a class from overriding
Can you prevent a class from overriding ? If you define a class as “Sealed” in C# and “NotInheritable” in VB.NET you can not inherit the class any further.
2007-10-23, 6453👍, 0💬

What are the different accessibility levels defined in .NET
What are the different accessibility levels defined in .NET ? Following are the five levels of access modifiers :- ã Private : Only members of class have access. ã Protected :-All members in current class and in derived classes can access the variables. ã Friend (internal in C#) :- Only members...
2007-10-23, 8342👍, 0💬

If we inherit a class do the private variables also get
If we inherit a class do the private variables also get inherited ? Yes, the variables are inherited but can not be accessed directly by the class interface.
2007-10-23, 7221👍, 0💬

What is the difference between delegate and events
What is the difference between delegate and events? ã Actually events use delegates in bottom. But they add an extra layer on the delegates, thus forming the publisher and subscriber model. ã As delegates are function to pointers they can move across any clients. So any of the clients can add or ...
2007-10-23, 6462👍, 0💬

What is the difference between Shadowing and Overriding
What is the difference between Shadowing and Overriding ? Following are the differences between shadowing and overriding :- ? Overriding redefines only the implementation while shadowing redefines the whole element. ? In overriding derived classes can refer the parent class element by using “ME” key...
2007-10-23, 5639👍, 0💬

What is shadowing
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow the other one. So in such cases the element which shadowed the main element is referenced. Below is a sample code, there are two classes “ClsParent” and “ClsShadowedParent”. In “ClsParent” there is a...
2007-10-23, 6975👍, 0💬

Can we have shared events
Can we have shared events ? Yes, you can have shared event’s note only shared methods can raise shared events.
2007-10-23, 7810👍, 0💬

Can event’s have access modifiers
Can event’s have access modifiers ? Event’s are always public as they are meant to serve every one register ing to it. But you can access modifiers in events.You can have events with protected keyword which will be accessible only to inherited classes.You can have private events only for object in t...
2007-10-23, 8953👍, 0💬

Do events have return type
Do events have return type ? No, events do not have return type.
2007-10-23, 7492👍, 0💬

What are events
What are events ? As compared to delegates events works with source and listener methodology. So listeners who are interested in receiving some events they subscribe to the source. Once this subscription is done the source raises events to its entire listener when needed. One source can have multipl...
2007-10-23, 5532👍, 0💬

What is a delegate
What is a delegate ? Delegate is a class that can hold a reference to a method or a function. Delegate class has a signature and it can only reference those methods whose signature is compliant with the class. Delegates are type-safe functions pointers or callbacks. Below is a sample code which show...
2007-10-23, 6785👍, 0💬

What is difference between abstract classes and
What is difference between abstract classes and interfaces? Following are the differences between abstract and interfaces :- ? Abstract classes can have concrete methods while interfaces have no methods implemented. ? Interfaces do not come in inheriting chain, while abstract classes come in inherit...
2007-10-23, 5097👍, 0💬

<< < 29 30 31 32 33 34 35 36 37 38 39 > >>   Sort: Rank