What is the difference between interface and abstract class in c#?



What is the difference between interface and abstract class in c#?..

Answer / Kapil Deol

An interface in C# defines a contract for a set of methods, properties, and events, while an abstract class can contain method implementations. An interface cannot be instantiated, but it can be implemented by a class. An abstract class can be instantiated and inherits from another abstract class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is c# an open source language?

1 Answers  


Why is xml called extensible?

1 Answers  


in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?

1 Answers   Siebel Systems,


What do you mean by directing?

1 Answers  


Can you put two constructor with the same structure in a class?

1 Answers  


Is c# a keyword?

1 Answers  


Explain the functionalities of satellite assembly?

1 Answers   Siebel,


what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

1 Answers   4Cplus,


What if an error occurs in Catch block, how can you prevent it?

2 Answers   IBM,


What are the uses of delegates in c#?

1 Answers  


What is the use of regex in c#?

1 Answers  


What is cshtml extension?

1 Answers  


Categories