What?s the difference between an interface and abstract class?
Answer Posted / rambabu gonela
java does't support multiple inheritance..to overcome this
problem.. java introduce new concept that is interface,
we cannot intantiate both interface and abstractclass.1)by
default in interface variables are public,static and final,
in abstract class we have to declare explicitly 2) methods
in interface public,nonstatic and abstract,where as in
abstract class we have to give....
3)we can implements more than one interfaces.. but we can
extends only one class..
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
What is difference between iqueryable and ienumerable in c#?
What is gac? How to put assembly in gac?
What is difference between event and delegate in c#?
Explain polymorphism in c# with a simple example?
Why static constructor is parameterless in c#?
How does return work in c#?
What is the difference between a variable and a literal?
What is difference between var dynamic and object in c#?
How to use nullable types in .net?
What is binding in c#?
What do you mean by serialization in .NET?
How many digits is a 32 bit number?
In which way you can convert a value-type to a reference-type?
What is token in c#?
Can interface have virtual methods in c#?