What is an Object? An object is an instance of a class. It can be uniquely identified by its name and it defines a state which is represented by the values of its attributes at a particular time. An object can be considered a "thing" that can perform a set of activities. The set of activities that the object performs defines the object's behavior. The state of the object changes according to the methods which are applied to it. We refer to these possible sequences of state changes as the behavior of the object. So the behavior of an object is defined...
Sunday, November 30, 2008
OOPs FAQ in C# - Part I
What is the difference between indexers and properties in C#? Comparison Between Properties and IndexersIndexers are similar to properties. Except for the differences shown in the following , all of the rules defined for property accessors apply to indexer accessors as well. PropertiesIdentified by its name.Accessed through a simple name or a member access.Can be a static or an instance member.A get accessor of a property has no parameters.A set accessor of a property contains the implicit value parameter. Indexers Identified by its signature.Accessed...
.Net Remoting Interview Questions
What is .NET Remoting?Net remoting replaces DCOM. Web Services that uses remoting can run in any Application type i.e. Console Application, Windows Form Applications, Window Services etc. In CLR Object Remoting we can call objects across network..NET Remoting Architecture?Methods that will be called from the client are implemented in a remote object class. Client uses a proxy to call a remote object. Remote objects runs inside a process that is different from the client process For the client, the proxy looks like the real object with the same...
Types of Parameters in C#
In C#, parameters are means of passing values to a method. There are four different ways of passing parameters to a method in C#. The four different types of parameters areValueOutRefParams1.Value parametersThis is the default parameter type in C#. If the parameter does not have any modifier it is "value" parameter by default. When we use "value" parameters the actual value is passed to the function, which means changes made to the parameter is local to the function and is not passed back to the calling part.using System;class ParameterTest{static...
Tuesday, November 11, 2008
SQL Interview Tips - 1
What is data integrity? Data integrity is an important feature in SQL Server. When used properly, it ensures that data is accurate, correct, and valid. also acts as a trap for otherwise undetectable bugs within applications.Explain constraints?Candidate key :A candidate key is a combination of attributes that can be uniquely used to identify a database record without any extraneous data. Each table may have one or more candidate keys. One of these candidate keys is selected as the table primary key.Primary Key :Primary key will create column data...