Difference between interface and abstract class?
Answers were Sorted based on User's Feedback
Answer / jenypatel86
There is no difference in the functionality of these two.The
only difference is that a class cannot extend an abstract
class if it already is extending some other class.An interface
on the other hand can be implemented in any situation which
makes them very powerful.Also user defined exceptions can be
defined within an interface itself, which is not the case with
an abstract class.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / m.shanmuga sundaram rjnsoftwar
There are some subtle differences between an abstract class
and an interface
1)
A class can inherit multiple interfaces
A class can inherit only one abstract class
2)
An interface does not contain any access specifier,fields
and code. By default the access specifier is public.
An abstract class can contain any access specifier,fields
and code.
| Is This Answer Correct ? | 4 Yes | 2 No |
is try block possible without catch block?
I want Ada programming language books. Could anyone post me any link for that?
which one is the best practice using synchronization method or synchronization block
what is the difference between read the data from table and infotype
if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008
Tell me the jobs for the MCA Fresher in delhi, Noida..
Explain what is OOPS and its concepts?
Can we write a method in JSP.If so how?
What is WEB 3.0? What are the features their in WEB3.0
2. What do you mean by DHCP?
Wats the name of the first os
what is lazy loading in hibernate?Explain in detailed manner?