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 static variable in c#?
What debugging tools come with the .NET ssSDK?
Why do we use readonly in c#?
What do you mean by default constructor?
What is hashtable in c# net with example?
Is java better than c#?
What is the difference between delegates and events in c#?
Can properties be private in c#?
What is xor operation?
What are functions c#?
What is the difference between // comments, /* */ comments and /// comments?
Define constructor in c#.
Why do we use lambda expression in c#?
Why do we use dataset in c#?
Is c# the same as d flat?