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
Whats an assembly? Describe the importance of assembly?
What is connection pooling in ado.net?
what are the contents of an assembly ?
What is difference between virtual and override in c#?
What is windows application in c#?
Why do we need private constructor in c#?
What is difference between dictionary and hashtable in c#?
Is c# code is unmanaged or managed code?
What is a hash table in c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
Can firstordefault return null?
What are data types with examples?
What type of data type conversion happens when the compiler encounters the following code?
What is querystring in c#?
What are Namespaces?