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
Can we declare private class in c#?
Can arraylist hold primitive types?
Tell us something about static linking and dynamic linking?
Give an example of a directcast.
Define a jagged array in c#?
Why do we use void in c#?
Define collections?
How is exception handling implemented in c#?
Why static constructor is parameterless in c#?
What is difference between method and function in c#?
Can we set image Source dynamically using C# in WPF application?
What is difference between ienumerable and ienumerator in c#?
What is multithreading with .net?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
Why extension method is static?