Interface is lightweight than Abstract.... **Abstract** When you don't clear about the future expansion of the framework... For creating multiple version application.. For creating products... For putting common behavior so that drived classes can use it without writing code again & again...
**Interface** For defining rules and business policies... To enforce something.... to overcome the problem of multiple inhetitence
puri keemti
Posts
-
When we have to use abstract and when we have to use interface ? -
What is the difference between static,readonly and constant ?Static : - Which shared the value with multiple instance
Readonly :- once define.. you can change the value through constructor only at the time of creating instance..
Constant :- once define; you can't change it,,
-
what is the diffrennce between String & stringString comes from the .NET class System.String and string (lower case) is a C# alias for System.String.
-
problem when connect to sql server(1) Check either SQL Login is enabled or not? (2) Use the Instance name instead of (local) and check the enabled protocols for the same.
-
How to Debug a DLL written in VC 6.0 in ASP.NET ( MSVS 2008 ) application?i hav did the same 7 years ago... don't knw the exact tool options....
-
What code is this?Binary Serialization file....
-
How to Debug a DLL written in VC 6.0 in ASP.NET ( MSVS 2008 ) application?Run Asp.net application with visual studio 6.0 for VC++ dll Debugging.
-
Validation Rule In SQL Server 2005Many ways to do validation in database (1) Constraints (2) SP (3) Triggers
-
How i can write query return the douplicate record with deffrint IDs ?! [modified]Use CTE feature of SQL server 2005..... Example:
;WITH SalesCTE(Product, SaleDate, SalePrice, Ranking)
AS
(
SELECT
Product, SaleDate, SalePrice,
Ranking = DENSE_RANK() OVER(PARTITION BY Product, SaleDate, SalePrice ORDER BY NEWID() ASC)
FROM SalesHistory
)
DELETE FROM SalesCTE
WHERE Ranking > 1
-
Design a system to Transform source Files to target file.Create run time stage table depending upon the format of targetting file.....
-
Financial Software DesignsNeed to define the scope of the problem... which part you are looking for....
-
Windows ServiceThere is no need of reinstalling of window service there...... But Question regarding business components... depending upon the type of assembly... if it is deployed in GAC... there is not need to recompile the window service... else need to recompile the service....
-
Document Management SyatemShould includes
(1) Business workflow (Approval system) (2) Access Level (Permission/Role) (3) Parsing of image documents (4) Versioning control (5) download and upload of documents
-
database connection problemProblem is with connection string. User name and password credentials are missing there....
-
Looking for ideas on how to release memory right before a generation 3 garbage collection [modified]Kindly change the question and state the correct problem there......
-
Looking for ideas on how to release memory right before a generation 3 garbage collection [modified]Pls. refers once purpose of Dispose pattern and supressfinalize method of GC.
-
How to access fields and values from an XML DatabaseIt will create table under dataset having three rows
(1) Id (2) Freq (3) Mode
You can access values easily by usingds.Tables[0].Rows[0][0] // It will return 1
ds.Tables[0].Rows[0][1] // 151955000so on......
-
Hold the parent session when calling a showModalDialog childModal dialogues can't refer to their parent using opener. You need to pass a reference to the parent in the second parameter to showModalDialog.
-
Problem with List<>You need to initialize the list of the struct "sGamePortItem" before assigning the object.
-
object from treeview help neededStore the selected node into Treenode. After that you can get all properties of node through object of treenode.