Difference between interface and abstract class?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to fetch all rows from the table based one field value in the table and later do a condition check if the condition is true I will have to move all the rows present in the data base to output file one else if the condition is not satisfied then move all the records of that field value into another file .Please let me know how to do that

1933


what is an INI file?

1894


what is delegate and how works delegate and event.

1983


what is the purpose of checked Menu options

2226


Give examples of macro quoting function?

1772


what are importance in problem tracking

1843


Which design patterns have you used?

1763


What is WEB 3.0? What are the features their in WEB3.0

1849


what is diff bet ref variable & instance of class

1778


what are all the ant command options

1767


Explain what is OOPS and its concepts?

850


1.how to deploy the Maven application in weblogic server? 2.In Real time projects all classes are singleton or some classes only singleton explain? 3.what are the major uses of the designpatterns? 4.explain restful &Soap based services explain?

1889


Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.

2541


any drawback are there in mantis?

1883


shall we execute our java programmes in jre

1974