What is the difference between and interface and an
abstract class ?

Answer Posted / murali

1.interface contains only abstract methods and varibles
2.whenever a class is not implementing that interface that
class should be an abstract class
3.An interface cannot implement another interface but an
abstract class can implement onther interface
4.An interface can extend more than one interface
5.An abstract can implment more than one interface

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does oop mean in snapchat?

675


Why is object oriented programming so hard?

609


what are the different types of qualifier in java?

1833


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1570


What polymorphism means?

614






write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1784


hi all..i want to know oops concepts clearly can any1 explain??

1675


What is the importance of oop?

605


What is static modifier?

626


Can bst contain duplicates?

661


What is the oops and benefits of oops programming?

547


What are functions in oop?

580


Can a varargs method be overloaded?

613


write knight tour problem which is present in datastructure

2157


Why do we use encapsulation in oops?

512