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


Please Help Members By Posting Answers For Below Questions

How do you prevent a class from being inherited?

708


Can c# inherit multiple classes?

719


Why we use methods in c#?

720


What is string method in c#?

669


What's new in c#?

667


What is datasource c#?

650


What is the main purpose of linq?

665


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

736


What is remote data?

629


Why do we use methods in c#?

644


What is a Command Object in C#?

733


What are the types of methods in c#?

667


What's the difference between a method and a procedure?

678


What is stringreader in c#?

652


Tell me the difference between value passing and address passing?

856