Difference between class and interface in .net?



Difference between class and interface in .net?..

Answer / Saran Kumar Kashyap

A class represents a blueprint for creating objects, defining their properties, methods, and behaviors. An interface is a collection of abstract methods and properties that a class must implement to comply with the interface contract. In .NET, classes can inherit from multiple base classes but can only implement one interface at a time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is view state?

6 Answers   TCS,


Write an StoredProcedure to get the values of a column within a date range.

1 Answers   Deloitte,


What is the benefit of .net core?

1 Answers  


Describe the Managed Execution Process?

1 Answers  


What is a manifest in .net?

1 Answers  


Explain what are possible implementations of distributed applications in .net?

1 Answers  


What is Active Directory? What is the namespace used to access the Microsoft Active Directories?

3 Answers  


What is a strategy pattern? Implement it.

1 Answers  


What is an exe and a dll?

1 Answers  


Explain the difference between constants and read-only variables?

1 Answers  


What is .net3.5?

1 Answers  


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

1 Answers  


Categories