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
i want the csharp questions&answeres
Can we overload the main method in c#?
How do I create multifile assembly?
What is the file extension for c#?
Why do we use namespace in c#?
How can I produce an assembly?
What is the default value of string in c#?
Explain the three test cases in unit testing?
Explain how to implement delegates in c#.net
Explain manifest & metadata in c#.
Does c# have its own class library?
Explanation on Generic?
Which is more efficient for loop or while loop?
What is overloading with example?
What is the relation between classes and objects?