What?s the difference between an interface and abstract class?

Answer Posted / kirti

In an interface class, all methods must be abstract. In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed, which is ok in an abstract class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to print "Hello" even before main() is executed. How will you achieve that?

521


Explain the ways to deploy an assembly?

518


Explain how to use an extender provider in the project.

496


What is difference between Enum and Struct?

558


What is a class c#?

487






Can int be null c#?

533


What can we do to handle multiple exceptions?

561


Is c sharp and c# are same?

516


What does immutable mean in c#?

512


What are the Features in .net framework 1.1

561


Can I get the name of a type at runtime?

542


What will be the output of the following code?

516


What is the difference between virtual method and abstract method?

551


Why do we use classes?

508


Which control cannot be placed in mdi?

538