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

Write the syntax for catching an exception in c#?

670


When should we use delegates in c#?

686


Why cannot you specify the accessibility modifier for methods inside the interface?

687


Is 0 an unsigned integer?

665


If you want to write your own dot net language, what steps you will u take care?

765


What is assembly version series sequence?

749


Explain About .NET Remoting and types of remoting

811


What is an interface class? Give one example of it

675


What basic steps are needed to display a simple report in crystal?

746


what is the purpose of using statement in c#

744


What does .length do in c#?

724


Can struct have constructor c#?

685


How C# 4.0 supports dynamic programming language?

771


Why singleton class is sealed in c#?

701


What is the difference between internal and private in c#?

705