diff between Abstract class Interfaces?

Answer Posted / anu mehra

abstract classes contain
1)abstract as well as non abstract method
2) to inherit we use extends keyword

Interface
1) all methods are abstract ,public and static
2) all variables are public , static and final
3) to inherit we use implements keyword
4) interface can extend another interface

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concepts involved in Object Oriented programming.

642


How do you define social class?

603


Plese get me a perfect C++ program for railway/airway reservation with all details.

3431


What are the data types in oop?

608


program for insertion ,deletion,sorting in double link list

2283






How oops is better than procedural?

589


What is the difference between inheritance and polymorphism?

594


What is inheritance in oop?

604


What is polymorphism and types?

602


What is the difference between static polymorphism and dynamic polymorphism?

587


Why is polymorphism used?

586


What is the difference between procedural programming and oops?

559


What is pointer in oop?

539


Can we override main method?

608


Why polymorphism is used in oops?

585