Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the 4 types of classes in ADO.NET?

Answers were Sorted based on User's Feedback



What are the 4 types of classes in ADO.NET?..

Answer / shashikant kothavale

DataAdapter,Dataset,DataReader and Command Objects

Is This Answer Correct ?    32 Yes 10 No

What are the 4 types of classes in ADO.NET?..

Answer / shwetha

The 4 Types of Classes in Ado.Net are

* Sqlconnection
* SQlCommand
* SqlDataReader
* SqlDataAdaptor

Is This Answer Correct ?    27 Yes 10 No

What are the 4 types of classes in ADO.NET?..

Answer / tahir

The 4 Types of Classes in Ado.Net are

* Sqlconnection
* SQlCommand
* SqlDataReader
* SqlDataAdaptor

Is This Answer Correct ?    11 Yes 2 No

What are the 4 types of classes in ADO.NET?..

Answer / gaurav agrawal

The class is one of the two basic encapsulation constructs
in C# (the other being the struct). Every executable
statement must be placed inside a class or struct. Classes
define reference types that are the basic building blocks of
C# programs, and they are the architectural blueprint for
the "objects" in OOP.
- Types of classes:-
1. Abstract: An instance of the class cannot be created.
Usually this means the class is intended to serve as a base
class. Abstract methods must be overridden in a derived
class. If any method of a class is abstract, the entire
class must be declared as abstract.
2. Sealed: The class cannot serve as a base class for
another class (it can't be derived from). A class cannot be
both abstract and sealed. Sealed methods are methods that
override an inherited virtual method having the same
signature. When a method is sealed, it cannot be overridden
in a derived class. Sealed classes are used to restrict the
inheritance feature of object oriented programming. Once a
class is defined as sealed class, this class cannot be
inherited.
3. New: Used only with nested classes. "New" indicates that
the class hides an inherited member of the same name.
assembly.
- Constructor Modifiers :-
A class defines data members, methods and nested types. A
constructor is a special method that is normally used to
initialize the data members of a class, and its name is
always the same as the name of the class. Constructors have
no return value, and any number of constructors can be
defined within a class. If no constructor is defined, the C#
compiler provides a default constructor having no parameters.
- Methods:-
Methods are always defined within the bounds of a class or
struct. Methods can be instance (called as an instance of
the type within which the method is defined) or static,
where the method is associated with the type itself. Methods
can be declared as virtual, abstract, or sealed. Methods can
be overloaded, overridden and hidden.
Virtual methods can be overridden by a derived class using
the override keyword.



Reference :
http://intquesans.blogspot.com/2011/05/types-of-classes.html

Is This Answer Correct ?    2 Yes 0 No

What are the 4 types of classes in ADO.NET?..

Answer / rajveer sodha

There are five Ado.net classes
* Sqlconnection
* SQlCommand
* SqlDataReader
* Dataset
* SqlDataAdaptor

Is This Answer Correct ?    11 Yes 12 No

Post New Answer

More ADO.NET Interview Questions

Is it possible to load multiple tables in a Dataset?

0 Answers  


Difference between sqlcommand and sqlcommandbuilder?

0 Answers  


what is clustered index?why is it created?

4 Answers   Microsoft, Wipro,


Command objects uses, purposes and their methods.

0 Answers  


How to get oledb connection?

3 Answers  


Difference between DataReader and DataAdapter / DataSet and DataAdapter?

3 Answers   TCS,


How you will set the datarelation between two columns?

3 Answers  


Advantage of ADO.Net?

2 Answers   QualSoft, TCS,


How is it possible to get 2 tables of data at a time by using data reader?

0 Answers  


How to copy the contents from one table to another table and how to delete the source table in ado.net?

0 Answers  


Which name space is used to get assembly details?

0 Answers  


How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

0 Answers   SwanSoft Technologies,


Categories