How different are interface and abstract class in .Net?

Answer Posted / vara prasad

In both Interface and Abstract classes we cannot create a
object but abstract classes can be inherited and we can
create a object for that derived class.

Abstract classes may contain concrete methods as well as an
Implementation of methods where as Interface doesn't
contain any implementation it just contains concrete
methods and to use those methods in interface we need to
inherit that interface and have to make sure that all
methods in the interface are implemented or else even the
derived class becomes an Interface.

Is This Answer Correct ?    26 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a design pattern and what is it for?

572


Does .net supports destructors concept?

1634


What is the use of activex control in .net?

605


What is RPC? What is the use of it?

618


What tools is used to develop .NET applications?

630






What is assembly in .net?

616


Explain Different kinds of methods?

1650


How can you turn-on and turn-off cas?

560


What is Flyout Design Pattern in .NET?

654


What is namespace in .net?

617


Define marshling?

607


What does jit compilation do in .net?

591


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

549


What is typical about a windows process in regards to memory allocation in .net?

566


Please explain what is the difference between constants and read-only variables?

595