< 1 2 3 >   Sort: Date

If we write a goto or a return statement in try and catch block will the finally block execute
If we write a goto or a return statement in try and catch block will the finally block execute ? The code in then finally always run even if there are statements like goto or a return statements.
2007-10-23, 5750👍, 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, 5636👍, 0💬

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

In what instances you will declare a constructor to be private
In what instances you will declare a constructor to be private? When we create a private constructor, we can not create object of the class directly from a client. So you will use private constructors when you do not want instances of the class to be created by any external client. Example UTILITY f...
2007-10-23, 5589👍, 0💬

What is the use of DISPOSE method
What is the use of DISPOSE method? Dispose method belongs to IDisposable interface. We had seen in the previous section how bad it can be to override the finalize method for writing the cleaning of unmanaged resources. So if any object wants to release its unmanaged code best is to implement IDispos...
2007-10-23, 5566👍, 0💬

Can we have different access modifiers on get/set methods of a property
Can we have different access modifiers on get/set methods of a property ? No we can not have different modifiers same property. The access modifier on a property applies to both its get and set accessors.
2007-10-23, 5535👍, 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, 5528👍, 0💬

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

What is nested Classes
What is nested Classes ? Nested classes are classes within classes. In sample below “ClsNested” class has a “ChildNested” class nested inside it. Public Class ClsNested Public Class ChildNested Public Sub ShowMessage() MessageBox.Show(“Hi this is nested class”) End Sub End Class End Class This is ...
2007-10-23, 5427👍, 0💬

What is Operator Overloading in .NET
What is Operator Overloading in .NET? It provides a way to define and use operators such as +, -, and / for user-defined classes or structs. It allows us to define/redefine the way operators work with our classes and structs. This allows programmers to make their custom types look and feel like simp...
2007-10-23, 5416👍, 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, 5390👍, 0💬

What is a Interface
What is a Interface ? Interface is a contract that defines the signature of the functionality. So if a class is implementing a interface it says to the outer world, that it provides specific behavior. Example if a class is implementing Idisposable interface that means it has a functionality to relea...
2007-10-23, 5350👍, 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, 5335👍, 0💬

What is the difference between System.String and System.StringBuilder classes
What is the difference between System.String and System.StringBuilder classes? System.String is immutable; System.StringBuilder can have mutable string where a variety of operations can be performed.
2007-10-23, 5294👍, 0💬

How can we acheive inheritance in VB.NET
How can we acheive inheritance in VB.NET ? Inheritance is achieved by using “Inherits” keyword in VB.NET (For C# it is “:”). Simple Sample is provided in CD for understanding inheritance in folder “WindowsApplicationInheritance ”.There are two classes one is the parent “ClsParent” and second is t...
2007-10-23, 5261👍, 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, 5198👍, 0💬

What are abstract classes
What are abstract classes ? Following are features of a abstract class :- ã You can not create a object of abstract class ã Abstract class is designed to act as a base class (to be inherited by other classes). Abstract class is a design concept in program development and provides a base upon whic...
2007-10-23, 5178👍, 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, 5176👍, 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, 5089👍, 0💬

What’s an Object
What’s an Object ? It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Objects are members of a class. Attributes and behavior of an object are defined by the class definition.
2007-10-23, 4926👍, 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, 4891👍, 0💬

What is the relation between Classes and Objects
What is the relation between Classes and Objects ? They look very much same but are not same. Class is a definition, while object is a instance of the class created. Class is a blue print while objects are actual objects existing in real world. Example we have class CAR which has attributes and meth...
2007-10-23, 4887👍, 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💬

What is Object Oriented Programming
What is Object Oriented Programming ? It is a problem solving technique to develop software systems. It is a technique to think real world in terms of objects. Object maps the software model to real world concept. These objects have responsibilities and provide services to application or other objec...
2007-10-23, 4638👍, 0💬

< 1 2 3 >   Sort: Date