Difference abstract class and interface in .net?



Difference abstract class and interface in .net?..

Answer / Rajesh Kumar Rai

An Abstract Class is a base class that cannot be instantiated directly, but it can have concrete members. It acts as a template for its subclasses and provides a set of methods that need to be implemented by the derived classes. An Interface, on the other hand, is a collection of abstract methods (without implementation) that a class implements to achieve a specific contract or behavior. Unlike abstract classes, interfaces cannot have instance variables or constructors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Can a dll be changed to an exe?

1 Answers  


I have a problem in installing visual Studio 2008 on PC that have Celeron Processor ? afterAll InstallionFaied . Pls suggest me . Is it possible or not .if Yes then How ?

1 Answers  


What is the difference between override and overload in a method?

1 Answers  


Explain the procedure to add assemly to gac to make it shared one?

1 Answers  


What is the use of design pattern?

1 Answers  


Please explain what is the difference between a class and an object?

1 Answers  


How to customize the trace output?

1 Answers  


What are object pooling and connection pooling and difference?

3 Answers   TCS,


What is CLR, CLS,CTS

4 Answers   Deloitte, Vee Technologies,


What is .net3.5?

1 Answers  


Why MVC programming model preferred?

1 Answers  


Give an example program for Getter /read-only methods in JAVA

1 Answers  


Categories