what is the ddifference Abstraction and Inheritance ?

what is the ddifference Abstraction and Inheritance ?

ektaa @ 007
Views: 66 | Community Opinion: 2



Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
bharti Said..

An abstract class and Interface both have method only but not have body of method.The difference between Abstract class and An Interface is that if u call Ablstract class then u have to call all method of that particular Abstract class but if u call an Interface
to know more visit below link
http://www.interviewqsn.com/what-is-difference-between-abstract-class-and-an-interface.html




Yuvraj Said..

(1)Multiple inheritance
Interface is not a class but a class may inherit several interfaces.
A class may inherit only one abstract class.
(2)Default implementation
Interface not provide any code that is default
abstract class provide default code and/or just the details that have to be overridden.
To know more visit below link

http://www.getproductprice.com/Ads-difference-in-between-abstrct-classes-and-interfaces.aspx






What do you think? Add your opinion/answer
*Name
*your opinion/answer: