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

Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3657


What is the difference between a constructor and a destructor?

706


What is destructor in oop?

696


Why do we use encapsulation in oops?

617


What is interface? When and where is it used?

1755






What is a class and object?

684


Can we define a class within the interface?

664


What are the three main types of variables?

700


How do you define social class?

679


What is the benefit of oop?

647


What does no cap mean?

682


How do you achieve runtime polymorphism?

646


Advantage and disadvantage of routing in telecom sector

870


What are the benefits of interface?

677


What is abstract class in oops?

675