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 a datacontract?

474


What is unsigned int?

519


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com

1486


How do you serialize in c#?

463


How will you allow a class to be inherited, but prevent the method from being over-ridden?

521






What is static class in C#?

560


What are satellite assemblies? How will you get the different language strings?

481


What is returned if you pass the value 12.34 to the parsefloat () function?

517


Can multiple inheritance implemented in c# ?

531


What is a helper method in c#?

473


What is a must for multitasking

556


What is the use of iqueryable in c#?

471


What is extension method in c sharp?

469


What is a data set in c#?

501


what is a enumeration in c#

566