Program.cs
using System;
namespace LearnCS
{
interface IBackupA
{
void BackupA();
}
interface IBackupB
{
void BackupB();
}
class Sec : IBackupA, IBackupB
{
public void BackupA()
{
Console.WriteLine("I Will backup Server A");
}
public void BackupB()
{
Console.WriteLine("I Will backup Server B");
}
}
class Program
{
static void Main(string[] args)
{
Sec p1 = new Sec();
p1.BackupA();
p1.BackupB();
Console.ReadLine();
}
}
}
No comments:
Post a Comment