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

When a Static Constructor is called in a Class?

0 Answers  


What's the difference between class and object?

0 Answers  


Why does dllimport not work for me?

0 Answers  


How to reverse each word in a string using c#?

0 Answers   Infosys,


how encapsulation is implemented in c#

0 Answers   Cognizant,






What are PE(Portable Executable)?

0 Answers   MCN Solutions,


Is xml tags are case sensitive?

0 Answers  


Does C# support multiple inheritance?

3 Answers   IBM, Siebel Systems, Visual Soft,


What does assert() do?

2 Answers  


Why we use methods in c#?

0 Answers  


What is a Command Object in C#?

0 Answers   B-Ways TecnoSoft,


Contrast System.String and System.Text.StringBuilder classes?

0 Answers   Siebel,


Categories