what is the difference between interface and abstraction?

Answer Posted / sajid

interface:
in interface,all methods must b abstract,by default all
members are PUBLIC,cant b implimented infact derived class
impliments its methods
interface can use multiple interface
abstract:
it is just like interface,not imolimented by itself,only
derived class can impliment abstract class or abstract
methods,abstract methods can b private unlike interface,cant
allow multiple inheritance

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is before string in c#?

504


How to find whether the application is run from inside ide or not?

578


What problem does Delegate Solve?

571


Difference between call by value and call by reference in C#?

529


Is c# dictionary a hash table?

487






How many parameters can a method have c#?

493


What is the console on a mac?

485


What is a decimal in c#?

510


What are the boolean data types in c#?

514


What is use of hashtable in c#?

492


is it possible to access a remote web service Without UDDI?

558


What is jit? What are the different types of jit?

580


What is default access modifier for class in c#?

507


What is parallel programming in c#?

500


What is a method signature in c#?

515