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

Why is polymorphism important in oop?

635


What is destructor oops?

625


What is encapsulation example?

550


What is static in oop?

591


What are the two different types of polymorphism?

672






What is pure oop?

599


What is destructor example?

597


What is encapsulation in ict?

608


Are polymorphisms mutations?

703


Why do we use polymorphism?

579


What is polymorphism programming?

605


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6154


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


What is the difference between inheritance and polymorphism?

592


Can we override main method?

607