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 are situations when you register .NET assembly in GAC ?

869


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

753


What is concurrency? How will you avoid concurrency when dealing with dataset?

808


What is the procedure to add assemly to gac to make it shared one?

764


Why you want to leave your previous company.

1832


Is .net an object oriented language? What are their components?

728


What are the differences between com architecture and.net architecture?

794


Do you know what is .net standard?

848


What is the use of UML in .Net

818


Is .net core free?

854


Tell us why do we use the “using” statement?

749


How to load the contents of an xml file into an xmldocument object?

828


Which namespace does it belong to by default?

794


Explain different types of html, web and server controls.

780


What's the problem with .net generics?

773