ADO .NET Connection class is used to specify the connection string from which database that we are getting the data.
According to that we have to specify the connection string in conncection class constructor.
we use the connection object to open the database connection as well as close the database connection