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

Answer Posted / nikhil

Difference

1. Interface doesn't allow accessibility modifier where as
we can specify accessibility modifier (public, private,
protected) for an abstract class.

2. Interface doesn't provide the implementation of the
members declared. This is not the case with abstract class

3. A class can inherit one and only one abstract class,
where as a class can implement one or more interfaces

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are objects passed by reference in c#?

525


Can we have 2 main methods in c#?

488


What are the boolean data types in c#?

512


What is the difference between struct and class c#?

487


Explain about finalize method?

553






What is the concept of strong names?

541


Can u list some style properties of List Box?

493


Does c# support multilevel inheritance?

485


What do you understand by 'access specifiers' in C#?

524


what is the default access for a class

582


Explain the serialization in .net

552


What is inline function in c#?

513


What is an object and a class?

557


How do you access a constant field declared in a class?

498


Is static thread safe?

492