Difference between interface and abstract class?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1823


what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?

2339


How do you pass variables forwrd to future CECI sessions

4281


I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!

1753


I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...

2823


how do find the user exit for selected feild whatis the process and can u plz explain it

1941


how do we provide security for web services

2047


Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????

1612


How many forms can you create in a Visual Basic 6 Standard EXE project? Is there any limit on that?

1741


what is dot net framework

2568


how to work search engine? plz detail answer me.

1676


Write code to read the records from a file and load any array of size 99?make sure that you take care of all the error conditions?

1837


What are two of your strengths that you will bring to our QA/testing team?

1853


how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?

2057


what is difference between kpo and it industry? that is in terms of work, package etc

1748