What is the difference between Abstract and Interface?

Answers were Sorted based on User's Feedback



What is the difference between Abstract and Interface?..

Answer / narendra mishra

Abstract->Abstract Method are the method without any
body.When derived class inherit the abstract method from
the abstract class It must override the abstract method.
Interface->Interface also define properties, method and
event which are known as the member of an interface.
Interface contain only the declaration of members.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between Abstract and Interface?..

Answer / nikhila

Abstract class contain both complete and incomplete methods
The implementation for abstract methods will be in derived class. Access specifier will allow

Interface contains only incomplete methods.The implementation will be in other class.Access specifier will not allow.by default public can use

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

how to convert String array to StringBuilder array or vice versa?

3 Answers   Wipro,


How do you prevent a class from being inherited in c#?

0 Answers  


Explain the serialization in .net

0 Answers  


Why is it important to override gethashcode when equals method is overridden?

0 Answers  


Can you have parameters for static constructors?

0 Answers  






What is difference between value and reference types in C#.NET

0 Answers   BirlaSoft,


What does clr stand for?

0 Answers  


Why do we use reflection in c#?

0 Answers  


What is default constructor c#?

0 Answers  


What is the difference between ref & out parameters in c#?

0 Answers  


Is stringbuilder thread safe c#?

0 Answers  


What is deadly diamond problem?

0 Answers  


Categories