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
Where static variables are stored?
What is single dimensional array in c#?
Differentiate between object pooling and connection pooling in c#?
What is iformatprovider in c#?
Define thread?
Explain what are three test cases you should go through in unit testing?
What does == mean in c sharp?
What is lazy t?
Does unity use c++ or c#?
What is the use of properties window?
what are the different ways a method can be overloaded?
what is the difference between convert.tostring() and tostring() functions ?
What is func delegate in c#?
Why is lazy loading?
Write down the c# syntax to catch an exception