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

Can you describe iuknown interface in short?

727


Write a sample code to write the contents to text file in c#?

558


How do you name a variable in c#?

596


Does a loop recorder have to be removed?

693


What are the types of inheritance in c#?

598






What is an array of arrays called?

511


Whats an assembly? Describe the importance of assembly?

588


What is stringbuilder c#?

604


What are the boolean data types in c#?

586


Why should you override the tostring() method?

679


Give an example of a directcast.

592


What is the namespcae generally given to the webpage of the .NET Framework ?

684


Explain how can you clean up objects holding resources from within the code?

566


Why we use get and set property in c#?

607


Can I use exceptions in c#?

635