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 IDisposal interface,IComparable,IEquatable,IFormatable
What is the process of Serialization?
Why do we need static class in c#?
What is an example of a delegate?
Can you drink alcohol with a loop recorder?
What are different types of classes in c#?
What is a streamwriter in c#?
Explain synchronous and asynchronous operations?
How long can loop recorders stay in?
Can we inherit singleton class in c#?
What are the ways in which client can create object on server in cao model?
Is c# code is unmanaged or managed code?
What are PE(Portable Executable)?
When a Static Constructor is called in a Class?
What is generic delegate in c#?