From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
Answer / Rimpy Yadav
When extending an interface, you only implement methods but do not inherit any properties or fields. This means that if new properties or fields are added to the interface in future versions, existing classes will not have those by default. Conversely, when extending a class, you get all its properties and fields as well, allowing for easier backward compatibility.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is null empty or whitespace c#?
What is the symbol used for in c#?
What is difference between C# and VB.NET?
How do you serialize an object?
Hi Everyone, the design of the form disappear during writing codes for dataset and data grid. The error show in "line of assigning dataset". I don't know what's happen. If anyone know , please share of technical help from someone. Thanks, Horace Trever
What is difference between events and delegates?
Why to use lock statement in c#?
Why delegates are safe in c#?
What does firstordefault mean in c#?
What is the use of xmlserializer?
Why we use methods in c#?
Is c# still popular?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)