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

Answer Posted / sathish kumar.t

ABSTRACT CLASS Interface

It consist of Static It consist of non- static member
member variables variables

It consist of non-abstract It consist of only abstract
and abstract methods methods

it consist of private and It consist of public classes
protected classes

It uses the keyword Extends uses the keyword Inplements

If subclass extends the If the subclass implements
abstact class, cannot extend interface, can implement any
any other class number of interfaces

Is This Answer Correct ?    19 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is data hiding and abstraction same?

563


what is the drawback of classical methods in oops?

2908


What is overloading in oops?

591


Where is pseudocode used?

559


What is a class and object?

589






Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1777


What is encapsulation c#?

597


What does and I oop mean?

610


Why it is called runtime polymorphism?

573


What is polymorphism used for?

564


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

3420


What are benefits of oop?

630


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6480


What is a class in oop?

593


What is oops and why we use oops?

569