Can you inherit multiple interfaces?
Answer Posted / vikas sv
Yes. Multiple interfaces may be inherited in C#.
Note that when a class and multiple interfaces are to be
inherited, then the class name should be written first,
followed by the names of the interfaces. See code example
below, on how to inherit multiple interfaces in C#.
C# Example
class someclass : parentclass, IInterface1, IInterface2
{
//...Some code in C#
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How many types of namespaces available in version4?
When was .net linq added?
In .Net, what is an assembly? Also explain the type of assembly.
What is object type in c#?
What is sqlcommand in c#?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is the difference between a variable and a literal?
What are the advantages of interface in c#?
What is dataadapter c#?
What is meant by console programming?
How can encapsulation be achieved?
What is a satellite assembly in c#?
Explain the difference between .net and c#?
What is string [] args in c#?
What are namespaces, and how they are used?