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
How to create multi-dimensional array?
Difference between value and reference type.
What is default parameter in c#?
What is a method c#?
Explain the mechanism of VB.NET/C# achieve polymorphism?
What does the keyword “virtual†declare for a method or property?
Tell me the difference between call by value and call by reference.
Does c# have functions?
What is the difference between static class and singleton class in c#?
What is enumerable in c#?
What is the reason behind the invention of c#?
What is windows forms in c#?
i want o/p 011242110 in c# code.
What do you mean by string objects are immutable?
What is the difference between protected and private?