what is the real use of interface in c#,other than that
multiple inheritance is not possible
Answer Posted / venkatesan
Interface is a contract which declares a method inside and
gives the implementation in different classes using
polymorphism. we cannot create a object to an interface but
we can create a reference for an interface.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is eager loading in c#?
What is asp net c# corner?
How do you specify a custom attribute for the entire assembly (rather than for a class)?
Is exe is machine dependent?
Which are access modifiers available in c#?
who is a protected class-level variable available to?
What is difference between managed and unmanaged code?
Is enum a value type c#?
What does out mean c#?
Is it possible to force garbage collector to run?
Why do we use static class in c#?
What is cosole application?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
What do you mean by jagged arrays in c#?
How to use the sreamReader class to read form a text file?