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
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
What is subsequence of a string?
how is final different from finally and finalize in java?
What are thread priorities and importance of thread priorities in java?
What is listnode in java?
What is difference between iterator and enumeration in java?
How many bits is a string?
What is difference between string and new string?
Explain java thread life cycle.
Write a program to search a number in the given list of numbers.
What is qms certification?
What is the definition of tree ?
Explain about strings in java?
Why javac is not recognized?
What is the difference between abstract classes and interfaces?