Difference between interface and abstract class?

Answers were Sorted based on User's Feedback



Difference between interface and abstract class? ..

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

Difference between interface and abstract class? ..

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

Post New Answer

More Programming Languages AllOther Interview Questions

What is the effect of the OPTIONS statement ERRORS=1?

3 Answers   QSG, Quintiles, SAS,


How to get the index of the clicked field in reports in ABAP?

0 Answers   Deloitte,


Which tag is used to create the frame

1 Answers  


Hi, I'm doing B.com 3rd year. Simultaneously I'm doing software engineering in a private institution. I would like to know whether my B.com graduation alone is enough to get me a job in the IT field or should I do some PG course not MBA... suggest me...

1 Answers  


I want Ada programming language books. Could anyone post me any link for that?

0 Answers  






what is different between kenerl mode and user mode?

1 Answers  


Can any one give an example (Source Code) on virtual function implemetation in Java?

0 Answers  


How to find out the user exit for va01.

1 Answers  


I would like to know what is Intellimatch and some interview questions which could be asked related to Intellimatch.

3 Answers  


what is apt_dump_score in datastage where it is useful

0 Answers   Accenture,


Differevce between arrays and array builders?

0 Answers  


hi friends please tel me how to handle the recovery manager(All i.e PopUp ,Application Crach ,Object state,etc) in QTP

1 Answers   IBM,


Categories