Difference between abstract class and interface
Answer Posted / karthick
Unlike interfaces, abstract classes can contain fields that
are not static and final, and they can contain implemented
methods. Such abstract classes are similar to interfaces,
except that they provide a partial implementation, leaving
it to subclasses to complete the implementation. If an
abstract class contains only abstract method declarations,
it should be declared as an interface instead.
Multiple interfaces can be implemented by classes anywhere
in the class hierarchy, whether or not they are related to
one another in any way. Think of Comparable or Cloneable,
for example.
By comparison, abstract classes are most commonly subclassed
to share pieces of implementation. A single abstract class
is subclassed by similar classes that have a lot in common
(the implemented parts of the abstract class), but also have
some differences (the abstract methods).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I can't be bothered with cas. Can I turn it off?
Define domestic architecture artifacts? : Dot net architecture
What are end points, contract, address and bindings?
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
What is the use of CLR in .NET?
Explain about the base class library provided by microsoft.net?
Define cache coherency? : Dot net architecture
What is cookie less session?
I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....
Explain the purpose of cache? : Dot net architecture
What is .net mobile images control. : Microsoft dot net mobile
Explain the race around condition? : .NET Architecture
What are library functions?
6. Wcf- what is SOA
Waht is Dot net Arcitecture