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

Answer Posted / narender reddy soma

Apart from usual differences between class and interface,
An abstract class is abstract in nature meaning - You can
have abstract methods and concrete as well.So what? you can
provide the generic implementation in concrete method and
leave abstract methods to sub class for
customization.Sounds good?

So, being abstract class it can exist as customized
implementation of its sub class.Not alone as it has
abstract method which doesnt have implementation hence
making it incomplete.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is functional interface runnable?

507


What are the benefits of using the aggregate method in linq?

501


Can you explain template pattern?

568


Explain the process of abstraction with an example?

502


What does executescalar return in c#?

453






Are structs value types or reference types?

566


What is the class in c#?

484


What are constants in c#?

559


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

494


What is meaning of type safety in c#?

460


Why do we need to call CG.SupressFinalize?

550


What is the difference between “out” and “ref” parameters in c#?

510


Is typeof c#?

533


How does the lifecycle of Windows services differ from Standard EXE?

516


What is difference between arraylist and list in c#?

432