What is the difference between abstract class and
Interface? Give an example how will u write an abstract
class using .NET Framework
Answers were Sorted based on User's Feedback
Answer / susant
difference between an interface and abstract class?
1.In Interface all methods must be abstract,
2.In the abstract class some methods can be concrete.
3.In the interface no accessibility modifiers are allowed,
which is ok in abstract classes.
4.In interface all the members are by-default public
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / brahmareddy
1.In Interface all methods must be abstract,
2.In the abstract class some methods can be concrete
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravi
1. you can inherit a abstract class but only one
but you can implement more than one interface.
2. you can't initiate a n instance of abstract class
3. there may be concrete method in abstract class but all
the method in interface is virtual only , no mrthod
definition can be given in interface.
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / santosh
when we declare class with abstract then the class
cannot cannot be extended.
Is This Answer Correct ? | 2 Yes | 10 No |
What is .net mobile forms? : Microsoft dot net mobile
Explain difference between machine config vs. Web config : Dot net architecture
What is textbox control of .net mobile? : Microsoft dot net mobile
What i sthe meaning of .(dot) in .Net?
Define an interrupt? : Dot net architecture
which tag i need to use manually to bind columns in a datagrid ?
Difference between abstract class and interface
100 Answers Accenture, Altruist, Baba Group, CitiGroup, Fiserv, HCL, IBM, iGate, Infosys, Jean Martin, Karthik Industries, Microsoft, OnDLine, TCS,
Why only boxed types can be unboxed?
Write a query Where,Groupby,having clauses?
what are clr,cls,cts?what is .net framework?
State and explain about microsoft.net?
Whate are resource files? How are they used in .net?