WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR
MULTIPLE INHERITANCE)
Answer Posted / matt s
An interface definition specifies the 'intent' of a public
interface without forcing a base implementation. It's more
used (in favour of base or abstract classes) in cases where
the interface defines some common 'high level'
characteristics or concepts for completely different
implementations - e.g:
A 'dog' interface may be specified with common methods such
as 'scratch' and 'bark', but each type of dog's
implementation of those would be completely different.
It's still a useful design feature however as it recognises
there are similarities at the higher 'behaviour' level.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is anonymous method in c#?
Explain the 3 types of properties in c# with an example?
What is the use of table aliases?
what is difference between is and as operators in c#?
What is wpf application in c#?
Does constructor return any value in c#?
What is difference between .net and c#?
What does f mean in c#?
Define parsing? Explain how to parse a datetime string?
What is the namespace for datatable in c#?
What is this keyword in C#?
What is delegation in oops?
code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.
What do you mean by directing?
Does c# support multilevel inheritance?