Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface?

Answer Posted / ipdarsini

Interface is the 1st Level.here methods does not contain
any executable code.just it contains only declerations.here
in interface level we does not know anything.
Abstract class is a class which contains methods which may
contains exceutable code or not.this is the 2 nd level.here
in abstarct class level we know some thing.
for ex take a maruthi car.......
in interface level.
we doesn't know about egine company........some parts.....
we know .....but its not sure...
in abstract class level
for ex take a maruthi 800 car......
we knows the comapany of that car.
here we know about some thing bcz here they mentioned
maruthi 800....

thats the difference.....

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1665


What is subsequence of a string?

821


how is final different from finally and finalize in java?

798


What are thread priorities and importance of thread priorities in java?

808


What is listnode in java?

731


What is difference between iterator and enumeration in java?

723


How many bits is a string?

729


What is difference between string and new string?

734


Explain java thread life cycle.

790


Write a program to search a number in the given list of numbers.

812


What is qms certification?

711


What is the definition of tree ?

748


Explain about strings in java?

811


Why javac is not recognized?

704


What is the difference between abstract classes and interfaces?

772