What is the difference between Abstract and Interface?

Answer Posted / nevin jain

-Abstract class contains both data members n members
functions.... but Interface contains only members functions

-Abstract class contains both complete n incomplete methods,
incomplete methods has to be explicitly marked as abstract
method...where as Interface contains all incomplete method n
no abstract keyword is requires explicitly.

-Abstract class n theirs members can be public,private or
protected whereas... By default access modifier are public n
no other access modifier can be given to interface n theirs
members.

-Abstract class members are inherit into derived class as
inherit members whereas... Interface members as inherited as
prototype members..

-Abstract class contain constructor whereas.. interface does
not contain..

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain metadata in c#.

682


What is lastindexof c#?

660


What is the difference between protected and internal in c#?

674


Distinguish between system.string and system.text.stringbuilder classes?

694


What does clr stand for?

706


How do I download a program to my desktop?

662


List down the differences between “dispose” and “finalize” methods in c#.

636


Write a program in C# for checking a given number is PRIME or not.

858


What are the three types of predicates?

636


What are the advantages of properties in c#?

738


What are handlers in c#?

719


What is dll hell, and how does .net solve it?

729


Are value types sealed?

725


What framework is used for performance testing/load testing?

1715


Explain About disco and uddi

907