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
Explain the race around condition? How can it be overcome? : Dot net architecture
What is WPF and WCF?
Is .net easier than java?
Explain about microsoft visual studio?
Explain pipelining? : Dot net architecture
Name some changes done since version 3.0?
Define pipelining? : Dot net architecture
What other than biginteger has been introduced in system.numerics namespace?
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile
Can you explain scriptmanager control?
What is textbox control of .net mobile? : Microsoft dot net mobile
Explain about generation?
How is the using() pattern useful? What is idisposable?
Can I create my own permission set?
Explain what does the term "green architecture" mean? : Dot net architecture