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 clr in .net?
What are the differences between com architecture and.net architecture?
What are the collections you've used?
Explain the garbage collection process?
what is the meaning silverligt control
What are the different types of Classes in .NET?
Is .net core free?
Which dll is required to translate xml to sql in internet information server (iis)?
What is the lapsed listener problem?
What is the difference between odbc and ado?
What is a windows process in .net?
What is the use of Treeview control?
What is .net core used for?
Do you know what is the difference between an abstract class and an interface?
Explain what is an application domain?