Where would you use Abstract class and Interface?
Answers were Sorted based on User's Feedback
Answer / vijay
You can offer the best of both worlds, an interface and an
abstract class. Implementors can ignore your abstract class
if they choose. The only drawback of doing that is calling
methods via their interface name is slightly slower than
calling them via their abstract class name.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / chitresh
Interface is use where we known that all these functions
which are declared in interface is implemented somewhere if
we call that interface.and we can use abstract class where
we don't known how it is implemented in call function.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / mayank bhatnagar
Interface includes just the definition of methods whereas
Abstract Classes are just like classes and hold all
functionality of classes except certain features.
The only difference between Abstarct Classes and Interfaces
is the use.Abstract Classes were introduced becoz of
diamond problem in C,C++.You can only inherit these classes
but cannot instantiate(i.e. no object of these classes can
be created, there can be one or more methods abstact in
such classes).
Interfaces are public and can be used/inherited by multiple
classes which was not before possible.
| Is This Answer Correct ? | 3 Yes | 2 No |
How to create Crystal Report in vb.net with coding
1 Answers A3Logics, Ascent, TCS,
How to achieve Polymorphism in VB.Net?
1.wht is satellite assembly??? 2.How Garbage Collector works can u explain ????
What do you mean by serialization?
What is the size of .net object?
What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?
how many server controls are presented in vb.net
When do you use virutal keyword?
How do you use two datareaders at the same time in a vb.net windows application ?
What are the features present in vb 2005?
What are all the differences between dispose and finalize()?
What are option strict and option explicit?
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)