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
What are situations when you register .NET assembly in GAC ?
How to prepare parametrized (with more than one parameters) crystal report. Please tell me the code procedure, if any body can?
What is concurrency? How will you avoid concurrency when dealing with dataset?
What is the procedure to add assemly to gac to make it shared one?
Why you want to leave your previous company.
Is .net an object oriented language? What are their components?
What are the differences between com architecture and.net architecture?
Do you know what is .net standard?
What is the use of UML in .Net
Is .net core free?
Tell us why do we use the “using” statement?
How to load the contents of an xml file into an xmldocument object?
Which namespace does it belong to by default?
Explain different types of html, web and server controls.
What's the problem with .net generics?