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 |
Why do we use ansi keyword?
What is the diff between vb mdi form and .net mdi form?
hello friends, I have created a animated button in VB.NET. As its dll file coding can be viewed and also copied to some other location. So my question is how can I protect the Dll file of the animated button so that noone can access it. Any idea about this???????? Thanks Rekha
linex will support dot net?
4 Answers Phoenix Technologies,
I'm unable to open a .hlp file using vb.net application.
Explain how the .net framework performs automatic memory management.
Explain how does the xmlserializer work?
What is the relation between Garbage collector and finalize and destructor?
What is shadowing?
How do you validate Date by using which validation Control?
How to create a constant in vb.net?
What is JIT(Just In Time) and How it works?
5 Answers Data Entry Operator, Infocons, Siemens,