How do you create multiple inheritance in C#?
Answer Posted / frank
using System;
interface Interdemo
{
void Show();
}
class Interimp:Interdemo
{
public void Show()
{
Console.WriteLine("Show() method Implemented");
}
public static void Main(string[] args)
{
Interimp inter = new Interimp();
inter.Show();
}
}
Is This Answer Correct ? | 36 Yes | 36 No |
Post New Answer View All Answers
How do you prevent a class from being inherited?
Can c# inherit multiple classes?
Why we use methods in c#?
What is string method in c#?
What's new in c#?
What is datasource c#?
What is the main purpose of linq?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
What is remote data?
Why do we use methods in c#?
What is a Command Object in C#?
What are the types of methods in c#?
What's the difference between a method and a procedure?
What is stringreader in c#?
Tell me the difference between value passing and address passing?