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 the interface in c#?
Explain the difference between the system.array.copyto() and system.array.clone()?
Why do we need private constructor in c#?
Explain the differences between static, void and public in c#?
What does xpath return?
What is the difference between private and protected in c#?
Any problem found in vs.et
In gridview in editmode if we want to display information in one combobox based on
What is a cs file?
Why do we need delegates in c#?
What is difference between overloading and short circuiting?
What is type system in c#?
What is datarelation c#?
Does c# have its own class library?
How can I get around scope problems in a try/catch?