Difference between abstract class and interface
Answer Posted / saqib khan mca 2009 galgotia g
1>Abstract class can have implementations of some methods
while interface can't have any implementations but
declarations of methods.
2>Abstract class can use various access modifiers while
interface doesn't use any access modifiers.
3>Abstract class doesn't support multiple inheritance while
interface's major use is to implement multiple and hybrid
inheritance.
4>Abstract class can have properties,data members,
constructors,static,const,readonly etc.while interface
doesn't implement these but properties.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
Explain the purpose of cache? How is it used? : .NET Architecture
Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile
what is the difference between master page and content page?
how can we achieve language interoperability through CLS? How MSIL works?
Explain dma? : Dot net architecture
where should I put this information then?
What is the purpose of cache? How is it used? : Dot net architecture
How does an appdomain get created?
What's new in the .net 2.0 class library?
What is the numeric attribute of the textbox control in .net mobile? : Microsoft dot net mobile
difference between Response.write,server.transfer and also which one is used when ?
4. Wcf- what Asych and Sych call and how that works
How do I write to the application configuration file at runtime?
What is .net mobile lists. : Microsoft dot net mobile