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 is lambda expressions in c#?
What are the collections you've used?
Explain me how does linq work?
Describe the programming model of a windows service
Explain me what is encapsulation?
I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.
What is the microsoft .net?
What is the advantage of packaging over xcopy in .net?
i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?
What is the difference between .net 2000 and .net 2005(features)? Which one is better?
Please explain what is the difference between odbc and ado?
What are code contracts?
What versions of .net are there?
What is .net and why it is used?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?