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

What are the types of abstraction?

553


What is the point of polymorphism?

584


What is a class and object?

595


What are the data types in oop?

602


What is multilevel inheritance explain with example?

623






How Do you Code Composition and Aggregation in C++ ?

24187


What is destructor in oop?

621


What causes polymorphism?

569


How to use CMutex, CSemaphore in VC++ MFC

4326


What are the components of marker interface?

600


Which language is not a true object oriented programming language?

640


What is overloading and its types?

612


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1662


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.

1789


What is encapsulation example?

545