Interface
|
Abstract
|
Declare
With keyword “Interface”
|
Declare
with keyword “Abstract”
|
A
class may inherit several interfaces.
|
A
class may inherit only one
abstract class.
|
An
interface cannot provide any code, just the signature.
|
An
abstract class can provide complete, default code and/or just the details
that have to be overridden.
|
No
fields can be defined in interfaces
|
An
abstract class can have fields and constrants defined
|
An
interface cannot have access modifiers for the subs, functions, properties
etc everything is assumed as public
|
An
abstract class can contain access modifiers for the subs, functions,
properties
|
It can come in inheritance chain
|
In that this is not come in inheritance chain
|
Slower
|
Faster
|
It will
not contain constructor
|
It will may or may not constructor
|
It
will only contain final variable
|
It will contain Final and instance variable
|
Connected Architecture of ADO.NET The architecture of ADO.net, in which connection must be opened to access the data retrieved from database is called as connected architecture. Connected architecture was built on the classes connection, command, datareader and transaction. Connected architecture is when you constantly make trips to the database for any CRUD (Create, Read, Update and Delete) operation you wish to do. This creates more traffic to the database but is normally much faster as you should be doing smaller transactions. Disconnected Architecture in ADO.NET The architecture of ADO.net in which data retrieved from database can be accessed even when connection to database was closed is called as disconnected architecture. Disconnected architecture of ADO.net was built on classes connection, dataadapter, commandbuilder and dataset and dataview. Disconnected architecture is a method of retrieving a r...
The modifier 'abstract' is not valid on fields. Try using a property instead.
ReplyDelete