what is the difference between interface and abstraction?

Answer Posted / anshul jain

An interface cannot provide any code, just the signature.
An abstract class can provide complete, default code and/or just the details that have to be overridden.
An interface cannot have access modifiers for the subs, functions, properties etc everything is assumed as public
An abstract class can contain access modifiers for the subs, functions, properties

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the method of servicebase class?

621


Explain how can you clean up objects holding resources from within the code?

566


What Is A Multicast Delegate?

630


What is the difference between static and private constructor in c#?

553


Are string objects mutable or immutable?

612






Can we extend static class in c#?

565


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

602


What is platform independence"?

624


Write a program to find the angle between the hours and minutes in a clock

571


What is serialization in dot net?

572


Is char * null terminated?

608


In a site to turn off cookies for one page which method is followed?

610


Explain a MSIL ? Why is it appreciated by all developers?

672


What is delegates in c#?

592


Are there functions in c#?

594