Do you know what is the difference between an abstract class and an interface?



Do you know what is the difference between an abstract class and an interface?..

Answer / Ashutosh Kumar Pandey

An abstract class can contain implementation details, as well as abstract methods that must be implemented by derived classes. An interface only defines a contract that specifies what members should exist in a class, but does not provide any implementation. Multiple classes can implement the same interface, while a class can inherit from one abstract class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....

1 Answers   Infotech, Wipro,


How is a managed code executed?

2 Answers  


What does mean by .net framework?

1 Answers  


Can a try block have more than one catch block?

1 Answers  


How to get the number after decimal point in .net?

1 Answers  


Explain weg config settings for exception managment in asp.net?

1 Answers   C Squared Systems,


What is Atomicity?

3 Answers   Verifone,


How to instantiate a delegate?

1 Answers  


Explain how to manage pagination in a page using .net?

1 Answers  


What is data type and how many types of data types are in .NET ?

1 Answers   Beahead Private Limited,


Explain me what is the .net framework and how does it work?

1 Answers  


How can I find out what the garbage collector is doing?

1 Answers  


Categories