Difference between abstract class and interface
Answer Posted / amit sinha
a) Interface force class to implement all methods and
function for implement while as Abstarct class does not
force class , you can override method and fuction of base
class .
b) Interface contains method and function without
implemention with signature only while as Abstract class
contains method , function with implemention and signature
c) By default , method ,function and members is public in
nature within interface , while as In Abstract class ,
memebers can be protected as well private etc..
d) Interface supports Multiple inheritance while as
Abstract class does not support Multiple Inheritance
e)Abstract classes are faster than interfaces
f)you can prevent not required method to override in
Abstract class , but not in Interface
| Is This Answer Correct ? | 38 Yes | 11 No |
Post New Answer View All Answers
Can you explain atlasuiglitz library?
What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile
if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get
Explain the five stages in a dlx pipeline? : .NET Architecture
Explain the race around condition? : Dot net architecture
What is .net mobile input validation. Explain with an example? : Microsoft dot net mobile
What is ILDASM ?
What is .net mobile forms? : Microsoft dot net mobile
What is the purpose of Accordian in jquery? Where it can be used?
What is private constructor? And it's use?
What are end points, contract, address and bindings?
Explain the purpose of cache? How is it used? : Dot net architecture
Different types of authentication modes in .net framework ?
What does the term "green architecture" mean? : Dot net architecture
How can we integrate atlas with web services?