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


Please Help Members By Posting Answers For Below Questions

Can we declare private class in c#?

473


Can arraylist hold primitive types?

532


Tell us something about static linking and dynamic linking?

529


Give an example of a directcast.

512


Define a jagged array in c#?

480






Why do we use void in c#?

468


Define collections?

491


How is exception handling implemented in c#?

573


Why static constructor is parameterless in c#?

591


What is difference between method and function in c#?

465


Can we set image Source dynamically using C# in WPF application?

624


What is difference between ienumerable and ienumerator in c#?

505


What is multithreading with .net?

527


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!!!

16604


Why extension method is static?

465